[PATCH] D133357: [Lex/DependencyDirectivesScanner] Keep track of the presence of tokens between the last scanned directive and EOF
Argyrios Kyrtzidis via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 6 07:31:07 PDT 2022
akyrtzi created this revision.
Herald added a subscriber: mgorny.
Herald added a project: All.
akyrtzi requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Directive `dependency_directives_scan::tokens_present_before_eof` is introduced to indicate there were tokens present before
the last scanned dependency directive and EOF.
This is useful to ensure we correctly identify the macro guards when lexing using the dependency directives.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D133357
Files:
clang/include/clang/Lex/DependencyDirectivesScanner.h
clang/lib/Lex/DependencyDirectivesScanner.cpp
clang/lib/Lex/Lexer.cpp
clang/unittests/Lex/CMakeLists.txt
clang/unittests/Lex/DependencyDirectivesScannerTest.cpp
clang/unittests/Lex/PPDependencyDirectivesTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133357.458168.patch
Type: text/x-patch
Size: 17406 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220906/5cc207e1/attachment-0001.bin>
More information about the cfe-commits
mailing list