summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata
diff options
context:
space:
mode:
authorHaojian Wu <hokein.wu@gmail.com>2019-12-10 22:15:29 +0100
committerHaojian Wu <hokein.wu@gmail.com>2019-12-11 10:52:13 +0100
commitf0004aad5565d4b76d41a03549c5a80efc4212c7 (patch)
treef38fb91513a3314bfb27aa06492574ace3b3b76c /lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata
parent1eecbda0872832da936d37c4288eaaa2645a7415 (diff)
downloadbcm5719-llvm-f0004aad5565d4b76d41a03549c5a80efc4212c7.tar.gz
bcm5719-llvm-f0004aad5565d4b76d41a03549c5a80efc4212c7.zip
[clangd] Deduplicate refs from index for cross-file rename.
Summary: If the index returns duplicated refs, it will trigger the assertion in BuildRenameEdit (we expect the processing position is always larger the the previous one, but it is not true if we have duplication), and also breaks our heuristics. This patch make the code robost enough to handle duplications, also save some cost of redundnat llvm::sort. Though clangd's index doesn't return duplications, our internal index kythe will. Reviewers: ilya-biryukov Subscribers: MaskRay, jkorous, mgrang, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D71300
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud