[PATCH] D96845: [clangd] IndexedFiles should include Fils from RefSlab and RelationSlab.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 17 06:44:38 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7048cb5371f9: [clangd] IndexedFiles should include Fils from RefSlab and RelationSlab. (authored by hokein).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96845/new/
https://reviews.llvm.org/D96845
Files:
clang-tools-extra/clangd/index/FileIndex.cpp
Index: clang-tools-extra/clangd/index/FileIndex.cpp
===================================================================
--- clang-tools-extra/clangd/index/FileIndex.cpp
+++ clang-tools-extra/clangd/index/FileIndex.cpp
@@ -280,11 +280,14 @@
}
for (const auto &FileAndRefs : RefsSnapshot) {
RefSlabs.push_back(FileAndRefs.second.Slab);
+ Files.insert(FileAndRefs.first());
if (FileAndRefs.second.CountReferences)
MainFileRefs.push_back(RefSlabs.back().get());
}
- for (const auto &FileAndRelations : RelationsSnapshot)
+ for (const auto &FileAndRelations : RelationsSnapshot) {
+ Files.insert(FileAndRelations.first());
RelationSlabs.push_back(FileAndRelations.second);
+ }
if (Version)
*Version = this->Version;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96845.324292.patch
Type: text/x-patch
Size: 789 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210217/9afb8c43/attachment.bin>
More information about the cfe-commits
mailing list