diff options
author | Julie Hockett <juliehockett@google.com> | 2018-05-10 19:05:36 +0000 |
---|---|---|
committer | Julie Hockett <juliehockett@google.com> | 2018-05-10 19:05:36 +0000 |
commit | 96fbe58b0f521f134c17e295bcafe041ee2bf3fd (patch) | |
tree | d56479000cdd2fb63d8e728bc160cba3c2dfe1e0 /clang/lib/Lex/PPDirectives.cpp | |
parent | c58988a9086f496177724e4c1d0277386a2ac011 (diff) | |
download | bcm5719-llvm-96fbe58b0f521f134c17e295bcafe041ee2bf3fd.tar.gz bcm5719-llvm-96fbe58b0f521f134c17e295bcafe041ee2bf3fd.zip |
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
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index e8083c721b8..949dbf17563 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -1968,7 +1968,7 @@ void Preprocessor::HandleIncludeDirective(SourceLocation HashLoc, HashLoc, IncludeTok, LangOpts.MSVCCompat ? NormalizedPath.c_str() : Filename, isAngled, FilenameRange, File, SearchPath, RelativePath, - ShouldEnter ? nullptr : SuggestedModule.getModule()); + ShouldEnter ? nullptr : SuggestedModule.getModule(), FileCharacter); if (SkipHeader && !SuggestedModule.getModule()) Callbacks->FileSkipped(*File, FilenameTok, FileCharacter); } |