summaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-move
diff options
context:
space:
mode:
authorJulie Hockett <juliehockett@google.com>2018-05-09 18:27:37 +0000
committerJulie Hockett <juliehockett@google.com>2018-05-09 18:27:37 +0000
commit4e548fe06f300d3c9e013bd12be61e6a3859d9a3 (patch)
tree3f98e71255036ca3574c6b41febbea0e4e3eae44 /clang-tools-extra/clang-move
parent36d94ab8f0123022c460980e31d4ad331ca7eb78 (diff)
downloadllvm-4e548fe06f300d3c9e013bd12be61e6a3859d9a3.tar.gz
[tools] Updating PPCallbacks::InclusionDirective calls
[revision] added SrcMgr::CharacteristicKind to the InclusionDirective callback, this revision updates instances of it in clang-tools-extra. Differential Revision: https://reviews.llvm.org/D46615 llvm-svn: 331905
Diffstat (limited to 'clang-tools-extra/clang-move')
-rw-r--r--clang-tools-extra/clang-move/ClangMove.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-move/ClangMove.cpp b/clang-tools-extra/clang-move/ClangMove.cpp
index d600daa22c55..b89e0be1c37d 100644
--- a/clang-tools-extra/clang-move/ClangMove.cpp
+++ b/clang-tools-extra/clang-move/ClangMove.cpp
@@ -131,7 +131,8 @@ public:
clang::CharSourceRange FilenameRange,
const clang::FileEntry * /*File*/,
StringRef SearchPath, StringRef /*RelativePath*/,
- const clang::Module * /*Imported*/) override {
+ const clang::Module * /*Imported*/,
+ SrcMgr::CharacteristicKind /*FileType*/) override {
if (const auto *FileEntry = SM.getFileEntryForID(SM.getFileID(HashLoc)))
MoveTool->addIncludes(FileName, IsAngled, SearchPath,
FileEntry->getName(), FilenameRange, SM);