This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG90a8c44d92b2: [clangd] Fix typo in field name (authored by nridge).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D87995/new/ https://reviews.llvm.org/D87995 Files: clang-tools-extra/clangd/index/FileIndex.cpp clang-tools-extra/clangd/index/FileIndex.h Index: clang-tools-extra/clangd/index/FileIndex.h =================================================================== --- clang-tools-extra/clangd/index/FileIndex.h +++ clang-tools-extra/clangd/index/FileIndex.h @@ -97,7 +97,7 @@ size_t Version = 0; llvm::StringMap<std::shared_ptr<SymbolSlab>> SymbolsSnapshot; llvm::StringMap<RefSlabAndCountReferences> RefsSnapshot; - llvm::StringMap<std::shared_ptr<RelationSlab>> RelatiosSnapshot; + llvm::StringMap<std::shared_ptr<RelationSlab>> RelationsSnapshot; }; /// This manages symbols from files and an in-memory index on all symbols. Index: clang-tools-extra/clangd/index/FileIndex.cpp =================================================================== --- clang-tools-extra/clangd/index/FileIndex.cpp +++ clang-tools-extra/clangd/index/FileIndex.cpp @@ -245,9 +245,9 @@ RefsSnapshot[Key] = std::move(Item); } if (!Relations) - RelatiosSnapshot.erase(Key); + RelationsSnapshot.erase(Key); else - RelatiosSnapshot[Key] = std::move(Relations); + RelationsSnapshot[Key] = std::move(Relations); } std::unique_ptr<SymbolIndex> @@ -266,7 +266,7 @@ if (FileAndRefs.second.CountReferences) MainFileRefs.push_back(RefSlabs.back().get()); } - for (const auto &FileAndRelations : RelatiosSnapshot) + for (const auto &FileAndRelations : RelationsSnapshot) RelationSlabs.push_back(FileAndRelations.second); if (Version)
Index: clang-tools-extra/clangd/index/FileIndex.h =================================================================== --- clang-tools-extra/clangd/index/FileIndex.h +++ clang-tools-extra/clangd/index/FileIndex.h @@ -97,7 +97,7 @@ size_t Version = 0; llvm::StringMap<std::shared_ptr<SymbolSlab>> SymbolsSnapshot; llvm::StringMap<RefSlabAndCountReferences> RefsSnapshot; - llvm::StringMap<std::shared_ptr<RelationSlab>> RelatiosSnapshot; + llvm::StringMap<std::shared_ptr<RelationSlab>> RelationsSnapshot; }; /// This manages symbols from files and an in-memory index on all symbols. Index: clang-tools-extra/clangd/index/FileIndex.cpp =================================================================== --- clang-tools-extra/clangd/index/FileIndex.cpp +++ clang-tools-extra/clangd/index/FileIndex.cpp @@ -245,9 +245,9 @@ RefsSnapshot[Key] = std::move(Item); } if (!Relations) - RelatiosSnapshot.erase(Key); + RelationsSnapshot.erase(Key); else - RelatiosSnapshot[Key] = std::move(Relations); + RelationsSnapshot[Key] = std::move(Relations); } std::unique_ptr<SymbolIndex> @@ -266,7 +266,7 @@ if (FileAndRefs.second.CountReferences) MainFileRefs.push_back(RefSlabs.back().get()); } - for (const auto &FileAndRelations : RelatiosSnapshot) + for (const auto &FileAndRelations : RelationsSnapshot) RelationSlabs.push_back(FileAndRelations.second); if (Version)
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits