OSDN Git Service

[clangd][fuzzyFind] Do not show stale symbols in the result.
authorAleksandr Platonov <platonov.aleksandr@huawei.com>
Wed, 6 Jan 2021 07:07:12 +0000 (10:07 +0300)
committerAleksandr Platonov <platonov.aleksandr@huawei.com>
Wed, 6 Jan 2021 08:17:12 +0000 (11:17 +0300)
commit979228f120f4aa1265648b1c06f65a84bcca1ed6
treeadda3fa15b56a81841027fc4dd1c0a476714ebe8
parent4909cb1a0fe9f2494ccbadc2856b6ddfc70051b5
[clangd][fuzzyFind] Do not show stale symbols in the result.

This is follow up to D93393.
Without this patch `MergedIndex::fuzzyFind()` returns stale symbols from the static index even if these symbols were removed.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D93796
clang-tools-extra/clangd/index/Merge.cpp
clang-tools-extra/clangd/index/Merge.h
clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp
clang-tools-extra/clangd/unittests/IndexTests.cpp