forked from OSchip/llvm-project
70674549f1
Summary: For counting number of references clangd was relying on merging every duplication of a symbol. Unfortunately this does not apply to FileIndex(and one of its users' BackgroundIndex), since we get rid of duplication by simply dropping symbols coming from non-canonical locations. So only one or two(coming from canonical declaration header and defined source file, if exists) replications of the same symbol reaches merging step. This patch changes reference counting logic to rather count number of different RefSlabs a given SymbolID exists. Reviewers: ilya-biryukov Subscribers: ioeric, MaskRay, jkorous, mgrang, arphaman, jdoerfert, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D59481 llvm-svn: 360344 |
||
---|---|---|
.. | ||
xpc | ||
Annotations.cpp | ||
Annotations.h | ||
BackgroundIndexTests.cpp | ||
CMakeLists.txt | ||
CancellationTests.cpp | ||
CanonicalIncludesTests.cpp | ||
ClangdTests.cpp | ||
ClangdUnitTests.cpp | ||
CodeCompleteTests.cpp | ||
CodeCompletionStringsTests.cpp | ||
ContextTests.cpp | ||
DexTests.cpp | ||
DiagnosticsTests.cpp | ||
DraftStoreTests.cpp | ||
ExpectedTypeTest.cpp | ||
FSTests.cpp | ||
FileDistanceTests.cpp | ||
FileIndexTests.cpp | ||
FindSymbolsTests.cpp | ||
FormattedStringTests.cpp | ||
FunctionTests.cpp | ||
FuzzyMatchTests.cpp | ||
GlobalCompilationDatabaseTests.cpp | ||
HeadersTests.cpp | ||
IndexActionTests.cpp | ||
IndexTests.cpp | ||
JSONTransportTests.cpp | ||
Matchers.h | ||
PrintASTTests.cpp | ||
QualityTests.cpp | ||
RIFFTests.cpp | ||
RenameTests.cpp | ||
SelectionTests.cpp | ||
SerializationTests.cpp | ||
SourceCodeTests.cpp | ||
SymbolCollectorTests.cpp | ||
SymbolInfoTests.cpp | ||
SyncAPI.cpp | ||
SyncAPI.h | ||
TUSchedulerTests.cpp | ||
TestFS.cpp | ||
TestFS.h | ||
TestIndex.cpp | ||
TestIndex.h | ||
TestScheme.h | ||
TestTU.cpp | ||
TestTU.h | ||
ThreadingTests.cpp | ||
TraceTests.cpp | ||
TweakTests.cpp | ||
TypeHierarchyTests.cpp | ||
URITests.cpp | ||
XRefsTests.cpp | ||
lit.cfg.py | ||
lit.site.cfg.py.in |