[clang-tools-extra] r370004 - Fix clangd's IndexAction for FileSkipped API update
Alex Lorenz via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 26 18:36:00 PDT 2019
Author: arphaman
Date: Mon Aug 26 18:36:00 2019
New Revision: 370004
URL: http://llvm.org/viewvc/llvm-project?rev=370004&view=rev
Log:
Fix clangd's IndexAction for FileSkipped API update
Modified:
clang-tools-extra/trunk/clangd/index/IndexAction.cpp
Modified: clang-tools-extra/trunk/clangd/index/IndexAction.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/IndexAction.cpp?rev=370004&r1=370003&r2=370004&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/index/IndexAction.cpp (original)
+++ clang-tools-extra/trunk/clangd/index/IndexAction.cpp Mon Aug 26 18:36:00 2019
@@ -103,10 +103,10 @@ public:
}
// Sanity check to ensure we have already populated a skipped file.
- void FileSkipped(const FileEntry &SkippedFile, const Token &FilenameTok,
+ void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok,
SrcMgr::CharacteristicKind FileType) override {
#ifndef NDEBUG
- auto URI = toURI(&SkippedFile);
+ auto URI = toURI(&SkippedFile.getFileEntry());
if (!URI)
return;
auto I = IG.try_emplace(*URI);
More information about the cfe-commits
mailing list