hokein created this revision. hokein added a reviewer: sammccall. Herald added subscribers: usaxena95, kadircet, arphaman. hokein requested review of this revision. Herald added subscribers: MaskRay, ilya-biryukov. Herald added a project: clang.
This looks like an oversight. Repository: rG LLVM Github Monorepo 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;
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;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits