* It is tough to contribute to a project that doesn't use a formatter, * It is extra hard to contribute to a project which has configured the formatter, but ignores it for some files * Code formatting makes it harder to hide obscure / weird bugs by accident or on purpose, Let's rip the bandaid off? Note that PRs currently in flight should be able to be merged relatively easily by applying `clang-format` to their tip prior to merge.
18 lines
353 B
C++
18 lines
353 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
|
|
// including 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::internal
|