diff options
author | Julie Hockett <juliehockett@google.com> | 2018-05-09 18:27:33 +0000 |
---|---|---|
committer | Julie Hockett <juliehockett@google.com> | 2018-05-09 18:27:33 +0000 |
commit | 6a37651bb30339e60ea617d510b4703bcd2e89e8 (patch) | |
tree | 6caba31415c8f39d5fb2995e9900a988e48fca41 /lib/CodeGen/MacroPPCallbacks.cpp | |
parent | 930a12f648006628481eeaf06d83c7168869d06c (diff) | |
download | clang-6a37651bb30339e60ea617d510b4703bcd2e89e8.tar.gz |
[clang] Adding CharacteristicKind to PPCallbacks::InclusionDirective
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@331904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MacroPPCallbacks.cpp')
-rw-r--r-- | lib/CodeGen/MacroPPCallbacks.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/MacroPPCallbacks.cpp b/lib/CodeGen/MacroPPCallbacks.cpp index a6f21d8ddc..48dea7d54b 100644 --- a/lib/CodeGen/MacroPPCallbacks.cpp +++ b/lib/CodeGen/MacroPPCallbacks.cpp @@ -178,7 +178,8 @@ void MacroPPCallbacks::FileChanged(SourceLocation Loc, FileChangeReason Reason, void MacroPPCallbacks::InclusionDirective( SourceLocation HashLoc, const Token &IncludeTok, StringRef FileName, bool IsAngled, CharSourceRange FilenameRange, const FileEntry *File, - StringRef SearchPath, StringRef RelativePath, const Module *Imported) { + StringRef SearchPath, StringRef RelativePath, const Module *Imported, + SrcMgr::CharacteristicKind FileType) { // Record the line location of the current included file. LastHashLoc = HashLoc; |