aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulie Hockett <juliehockett@google.com>2018-05-09 18:27:33 +0000
committerJulie Hockett <juliehockett@google.com>2018-05-09 18:27:33 +0000
commit36d94ab8f0123022c460980e31d4ad331ca7eb78 (patch)
tree401dbcdd497fe057f6c6b7b2278ba22e993a4c30 /clang/lib/CodeGen/MacroPPCallbacks.h
parent[llvm-rc] Handle C preprocessor output (diff)
downloadllvm-project-36d94ab8f0123022c460980e31d4ad331ca7eb78.tar.gz
llvm-project-36d94ab8f0123022c460980e31d4ad331ca7eb78.tar.bz2
llvm-project-36d94ab8f0123022c460980e31d4ad331ca7eb78.zip
[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 llvm-svn: 331904
Diffstat (limited to 'clang/lib/CodeGen/MacroPPCallbacks.h')
-rw-r--r--clang/lib/CodeGen/MacroPPCallbacks.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/MacroPPCallbacks.h b/clang/lib/CodeGen/MacroPPCallbacks.h
index e117f96f47df..48c67e2d36ad 100644
--- a/clang/lib/CodeGen/MacroPPCallbacks.h
+++ b/clang/lib/CodeGen/MacroPPCallbacks.h
@@ -101,7 +101,8 @@ public:
StringRef FileName, bool IsAngled,
CharSourceRange FilenameRange, const FileEntry *File,
StringRef SearchPath, StringRef RelativePath,
- const Module *Imported) override;
+ const Module *Imported,
+ SrcMgr::CharacteristicKind FileType) override;
/// Hook called whenever a macro definition is seen.
void MacroDefined(const Token &MacroNameTok,