1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 17:51:15 +02:00

Make lexer-helpers.hh internal to fix a clang-tidy error

(cherry picked from commit 8be24f58f2)
This commit is contained in:
Eelco Dolstra 2025-04-07 17:54:39 +02:00 committed by Mergify
parent 6dde30bacf
commit 17de9dd275
4 changed files with 2 additions and 7 deletions

View 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