summaryrefslogtreecommitdiff
path: root/clang-tools-extra/clangd/ClangdUnit.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
commit54ca8fd8e7e4579ba24ea1e93bf62fa9da661dd5 (patch)
tree0c0a050e257e91a03b6292af2097e2575968aca5 /clang-tools-extra/clangd/ClangdUnit.cpp
parentaf7921de3a2df38c89bdd797b1acabd20e393a0e (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.
Diffstat (limited to 'clang-tools-extra/clangd/ClangdUnit.cpp')
-rw-r--r--clang-tools-extra/clangd/ClangdUnit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/ClangdUnit.cpp b/clang-tools-extra/clangd/ClangdUnit.cpp
index c750f578e65..fd8f1ec2765 100644
--- a/clang-tools-extra/clangd/ClangdUnit.cpp
+++ b/clang-tools-extra/clangd/ClangdUnit.cpp
@@ -93,7 +93,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 {
auto SR = FilenameRange.getAsRange();
if (SR.isInvalid() || !File || File->tryGetRealPathName().empty())
return;