]> granicus.if.org Git - clang/commit
Reland '[clang] Adding CharacteristicKind to PPCallbacks::InclusionDirective'
authorJulie Hockett <juliehockett@google.com>
Thu, 10 May 2018 19:05:36 +0000 (19:05 +0000)
committerJulie Hockett <juliehockett@google.com>
Thu, 10 May 2018 19:05:36 +0000 (19:05 +0000)
commit1a597eeed3579b4320b62ff55150195482545992
tree278a1a2f54e290027d0045c2ce9b93eabe7a59cb
parent5cc6e4d7280086984bad69532a5e09ab2899ed6b
Reland '[clang] Adding CharacteristicKind to PPCallbacks::InclusionDirective'

This commit relands r331904.

Adding a SrcMgr::CharacteristicKind parameter to the InclusionDirective
in PPCallbacks, and updating calls to that function. This will be useful
in https://reviews.llvm.org/D43778 to determine which includes are
system
headers.

Differential Revision: https://reviews.llvm.org/D46614

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332021 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang/Lex/PPCallbacks.h
include/clang/Lex/PreprocessingRecord.h
lib/CodeGen/MacroPPCallbacks.cpp
lib/CodeGen/MacroPPCallbacks.h
lib/Frontend/DependencyFile.cpp
lib/Frontend/DependencyGraph.cpp
lib/Frontend/ModuleDependencyCollector.cpp
lib/Frontend/PrintPreprocessedOutput.cpp
lib/Frontend/Rewrite/InclusionRewriter.cpp
lib/Lex/PPDirectives.cpp
lib/Lex/PreprocessingRecord.cpp
tools/libclang/Indexing.cpp
unittests/Lex/PPCallbacksTest.cpp