Lexing until the token location is past preamble bound could be wrong
in some cases as preprocessor lexer can lex multiple tokens in a single call.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/Preamble.cpp | ||
---|---|---|
125 | Maybe add a comment here: // This means we're scanning (though not preprocessing) the preamble section twice. // However, it's important to precisely follow the preamble bounds used elsewhere. This guards somewhat against someone sending the reverse patch. Chesterton's fence etc. |
Maybe add a comment here:
This guards somewhat against someone sending the reverse patch. Chesterton's fence etc.