mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
Make lexer-helpers.hh internal to fix a clang-tidy error
This commit is contained in:
parent
2960d7adf5
commit
8be24f58f2
4 changed files with 2 additions and 7 deletions
17
src/libexpr/lexer-helpers.hh
Normal file
17
src/libexpr/lexer-helpers.hh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
// inluding the generated headers twice leads to errors
|
||||
#ifndef BISON_HEADER
|
||||
# include "lexer-tab.hh"
|
||||
# include "parser-tab.hh"
|
||||
#endif
|
||||
|
||||
namespace nix::lexer::internal {
|
||||
|
||||
void initLoc(YYLTYPE * loc);
|
||||
|
||||
void adjustLoc(yyscan_t yyscanner, YYLTYPE * loc, const char * s, size_t len);
|
||||
|
||||
} // namespace nix::lexer
|
Loading…
Add table
Add a link
Reference in a new issue