aboutsummaryrefslogtreecommitdiff
path: root/clang-tidy/utils
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
commitb7d71a520dd9671578c3d3c723876fd6793bb8e8 (patch)
treeb07da8548609ec44df248211ae084684952ae666 /clang-tidy/utils
parent22f9b1e0f683324a9212fecf10931d0565c3f59e (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@332023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/utils')
-rw-r--r--clang-tidy/utils/IncludeInserter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tidy/utils/IncludeInserter.cpp b/clang-tidy/utils/IncludeInserter.cpp
index 9fc7f521..64e4213c 100644
--- a/clang-tidy/utils/IncludeInserter.cpp
+++ b/clang-tidy/utils/IncludeInserter.cpp
@@ -25,7 +25,8 @@ public:
bool IsAngled, CharSourceRange FileNameRange,
const FileEntry * /*IncludedFile*/,
StringRef /*SearchPath*/, StringRef /*RelativePath*/,
- const Module * /*ImportedModule*/) override {
+ const Module * /*ImportedModule*/,
+ SrcMgr::CharacteristicKind /*FileType*/) override {
Inserter->AddInclude(FileNameRef, IsAngled, HashLocation,
IncludeToken.getEndLoc());
}