Author: Nathan Ridge Date: 2020-09-20T19:52:39-04:00 New Revision: 90a8c44d92b217eccba2467a11d0658675b5fe80
URL: https://github.com/llvm/llvm-project/commit/90a8c44d92b217eccba2467a11d0658675b5fe80 DIFF: https://github.com/llvm/llvm-project/commit/90a8c44d92b217eccba2467a11d0658675b5fe80.diff LOG: [clangd] Fix typo in field name Differential Revision: https://reviews.llvm.org/D87995 Added: Modified: clang-tools-extra/clangd/index/FileIndex.cpp clang-tools-extra/clangd/index/FileIndex.h Removed: ################################################################################ diff --git a/clang-tools-extra/clangd/index/FileIndex.cpp b/clang-tools-extra/clangd/index/FileIndex.cpp index dafec6742c2c..155e09ca1e97 100644 --- a/clang-tools-extra/clangd/index/FileIndex.cpp +++ b/clang-tools-extra/clangd/index/FileIndex.cpp @@ -245,9 +245,9 @@ void FileSymbols::update(llvm::StringRef Key, 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 @@ FileSymbols::buildIndex(IndexType Type, DuplicateHandling DuplicateHandle, 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) diff --git a/clang-tools-extra/clangd/index/FileIndex.h b/clang-tools-extra/clangd/index/FileIndex.h index c7bc855bcb8e..127203c84c48 100644 --- a/clang-tools-extra/clangd/index/FileIndex.h +++ b/clang-tools-extra/clangd/index/FileIndex.h @@ -97,7 +97,7 @@ class FileSymbols { 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. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits