1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 10:11:47 +02:00

Merge pull request #12961 from DeterminateSystems/lexer-helpers-private

Make lexer-helpers.hh internal to fix a clang-tidy error
This commit is contained in:
John Ericson 2025-04-07 14:28:14 -04:00 committed by GitHub
commit 856f8e0e49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2 additions and 7 deletions

View file

@ -20,7 +20,6 @@ headers = [config_pub_h] + files(
'gc-small-vector.hh', 'gc-small-vector.hh',
'get-drvs.hh', 'get-drvs.hh',
'json-to-value.hh', 'json-to-value.hh',
# internal: 'lexer-helpers.hh',
'nixexpr.hh', 'nixexpr.hh',
'parser-state.hh', 'parser-state.hh',
'primops.hh', 'primops.hh',

View file

@ -1,7 +1,4 @@
#include "lexer-tab.hh" #include "lexer-helpers.hh"
#include "parser-tab.hh"
#include "nix/expr/lexer-helpers.hh"
void nix::lexer::internal::initLoc(YYLTYPE * loc) void nix::lexer::internal::initLoc(YYLTYPE * loc)
{ {

View file

@ -25,8 +25,7 @@
#endif #endif
#include "nix/expr/nixexpr.hh" #include "nix/expr/nixexpr.hh"
#include "parser-tab.hh" #include "lexer-helpers.hh"
#include "nix/expr/lexer-helpers.hh"
namespace nix { namespace nix {
struct LexerState; struct LexerState;