diff options
author | Kadir Cetinkaya <kadircet@google.com> | 2019-05-09 14:22:07 +0000 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2019-05-09 14:22:07 +0000 |
commit | 70674549f10f851b6edf2c5329d1dce56df945c1 (patch) | |
tree | 65aca7e2325fdeed91fa468de41f133570053d89 /lldb/packages/Python/lldbsuite/test/python_api/frame/TestFrames.py | |
parent | 82e68f5d6a2737a74d06ac3d95c0b17eee5f89db (diff) | |
download | bcm5719-llvm-70674549f10f851b6edf2c5329d1dce56df945c1.tar.gz bcm5719-llvm-70674549f10f851b6edf2c5329d1dce56df945c1.zip |
[clangd] Count number of references while merging RefSlabs inside FileIndex
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/frame/TestFrames.py')
0 files changed, 0 insertions, 0 deletions