[all-commits] [llvm/llvm-project] aa484c: [Lex/DependencyDirectivesScanner] Keep track of th...
Argyrios Kyrtzidis via All-commits
all-commits at lists.llvm.org
Wed Sep 7 10:31:47 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aa484c90cf5902042cec0f6a4f3bf2a460eea307
https://github.com/llvm/llvm-project/commit/aa484c90cf5902042cec0f6a4f3bf2a460eea307
Author: Argyrios Kyrtzidis <kyrtzidis at apple.com>
Date: 2022-09-07 (Wed, 07 Sep 2022)
Changed paths:
M clang/include/clang/Lex/DependencyDirectivesScanner.h
M clang/lib/Lex/DependencyDirectivesScanner.cpp
M clang/lib/Lex/Lexer.cpp
M clang/unittests/Lex/CMakeLists.txt
M clang/unittests/Lex/DependencyDirectivesScannerTest.cpp
A clang/unittests/Lex/PPDependencyDirectivesTest.cpp
Log Message:
-----------
[Lex/DependencyDirectivesScanner] Keep track of the presence of tokens between the last scanned directive and EOF
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.
Differential Revision: https://reviews.llvm.org/D133357
More information about the All-commits
mailing list