[all-commits] [llvm/llvm-project] 7b492d: [clang][deps] Teach dep directive scanner about #p...
Ben Langmuir via All-commits
all-commits at lists.llvm.org
Wed May 3 13:58:39 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7b492d1be0ea5b767cc567ca2792a291242f9973
https://github.com/llvm/llvm-project/commit/7b492d1be0ea5b767cc567ca2792a291242f9973
Author: Ben Langmuir <blangmuir at apple.com>
Date: 2023-05-03 (Wed, 03 May 2023)
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/DependencyDirectivesScannerTest.cpp
Log Message:
-----------
[clang][deps] Teach dep directive scanner about #pragma clang system_header
This ensures we get the correct FileCharacteristic during scanning. In a
yet-to-be-upstreamed branch this fixes observable failures, but it's
also good to handle this on principle: the FileCharacteristic is a
property of the file that is observable in the scanner, so there is
nothing preventing us from depending on it.
rdar://108627403
Differential Revision: https://reviews.llvm.org/D149777
More information about the All-commits
mailing list