diff options
author | Haojian Wu <hokein.wu@gmail.com> | 2019-12-10 22:15:29 +0100 |
---|---|---|
committer | Haojian Wu <hokein.wu@gmail.com> | 2019-12-11 10:52:13 +0100 |
commit | f0004aad5565d4b76d41a03549c5a80efc4212c7 (patch) | |
tree | f38fb91513a3314bfb27aa06492574ace3b3b76c /lldb/packages/Python/lldbsuite/test/python_api/thread/TestThreadAPI.py | |
parent | 1eecbda0872832da936d37c4288eaaa2645a7415 (diff) | |
download | bcm5719-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/thread/TestThreadAPI.py')
0 files changed, 0 insertions, 0 deletions