[PATCH] D87995: [clangd] Fix typo in field name
Nathan Ridge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 20 16:51:05 PDT 2020
nridge created this revision.
Herald added subscribers: cfe-commits, usaxena95, kadircet, arphaman, jkorous.
Herald added a project: clang.
nridge requested review of this revision.
Herald added subscribers: MaskRay, ilya-biryukov.
Repository:
rG LLVM Github Monorepo
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
@@ -249,9 +249,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>
@@ -270,7 +270,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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87995.293042.patch
Type: text/x-patch
Size: 1442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200920/80baae03/attachment.bin>
More information about the cfe-commits
mailing list