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)
commit96fbe58b0f521f134c17e295bcafe041ee2bf3fd
treed56479000cdd2fb63d8e728bc160cba3c2dfe1e0
parentc58988a9086f496177724e4c1d0277386a2ac011
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

llvm-svn: 332021
13 files changed:
clang/include/clang/Lex/PPCallbacks.h
clang/include/clang/Lex/PreprocessingRecord.h
clang/lib/CodeGen/MacroPPCallbacks.cpp
clang/lib/CodeGen/MacroPPCallbacks.h
clang/lib/Frontend/DependencyFile.cpp
clang/lib/Frontend/DependencyGraph.cpp
clang/lib/Frontend/ModuleDependencyCollector.cpp
clang/lib/Frontend/PrintPreprocessedOutput.cpp
clang/lib/Frontend/Rewrite/InclusionRewriter.cpp
clang/lib/Lex/PPDirectives.cpp
clang/lib/Lex/PreprocessingRecord.cpp
clang/tools/libclang/Indexing.cpp
clang/unittests/Lex/PPCallbacksTest.cpp