summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/modularize/PreprocessorTracker.cpp
diff options
context:
space:
mode:
authorJulie Hockett <juliehockett@google.com>2018-05-10 19:13:14 +0000
committerJulie Hockett <juliehockett@google.com>2018-05-10 19:13:14 +0000
commit546943f9f1ab8d7885b54fc44f95620458967d7e (patch)
treea15529646032d9d3394cf309459f74fef7302999 /clang-tools-extra/modularize/PreprocessorTracker.cpp
parenta3686c9a285e5ba0a78b9dbad4cb11052ea101c9 (diff)
downloadbcm5719-llvm-546943f9f1ab8d7885b54fc44f95620458967d7e.tar.gz
bcm5719-llvm-546943f9f1ab8d7885b54fc44f95620458967d7e.zip
Reland "[tools] Updating PPCallbacks::InclusionDirective calls"
This commit relands r331905. r331904 added SrcMgr::CharacteristicKind to the InclusionDirective callback, this revision updates instances of it in clang-tools-extra. llvm-svn: 332023
Diffstat (limited to 'clang-tools-extra/modularize/PreprocessorTracker.cpp')
-rw-r--r--clang-tools-extra/modularize/PreprocessorTracker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang-tools-extra/modularize/PreprocessorTracker.cpp b/clang-tools-extra/modularize/PreprocessorTracker.cpp
index a9d61f05d04..6cb34c7b25a 100644
--- a/clang-tools-extra/modularize/PreprocessorTracker.cpp
+++ b/clang-tools-extra/modularize/PreprocessorTracker.cpp
@@ -750,7 +750,8 @@ public:
const clang::FileEntry *File,
llvm::StringRef SearchPath,
llvm::StringRef RelativePath,
- const clang::Module *Imported) override;
+ const clang::Module *Imported,
+ clang::SrcMgr::CharacteristicKind FileType) override;
void FileChanged(clang::SourceLocation Loc,
clang::PPCallbacks::FileChangeReason Reason,
clang::SrcMgr::CharacteristicKind FileType,
@@ -1289,7 +1290,7 @@ void PreprocessorCallbacks::InclusionDirective(
llvm::StringRef FileName, bool IsAngled,
clang::CharSourceRange FilenameRange, const clang::FileEntry *File,
llvm::StringRef SearchPath, llvm::StringRef RelativePath,
- const clang::Module *Imported) {
+ const clang::Module *Imported, clang::SrcMgr::CharacteristicKind FileType) {
int DirectiveLine, DirectiveColumn;
std::string HeaderPath = getSourceLocationFile(PP, HashLoc);
getSourceLocationLineAndColumn(PP, HashLoc, DirectiveLine, DirectiveColumn);
OpenPOWER on IntegriCloud