diff --git a/clang-tools-extra/clangd/index/FileIndex.h b/clang-tools-extra/clangd/index/FileIndex.h --- a/clang-tools-extra/clangd/index/FileIndex.h +++ b/clang-tools-extra/clangd/index/FileIndex.h @@ -97,7 +97,7 @@ size_t Version = 0; llvm::StringMap> SymbolsSnapshot; llvm::StringMap RefsSnapshot; - llvm::StringMap> RelatiosSnapshot; + llvm::StringMap> RelationsSnapshot; }; /// This manages symbols from files and an in-memory index on all symbols. diff --git a/clang-tools-extra/clangd/index/FileIndex.cpp b/clang-tools-extra/clangd/index/FileIndex.cpp --- a/clang-tools-extra/clangd/index/FileIndex.cpp +++ b/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 @@ -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)