OSDN Git Service

[clangd] Do not take stale definition from the static index.
authorAleksandr Platonov <platonov.aleksandr@huawei.com>
Wed, 23 Dec 2020 14:04:54 +0000 (17:04 +0300)
committerAleksandr Platonov <platonov.aleksandr@huawei.com>
Wed, 23 Dec 2020 15:21:38 +0000 (18:21 +0300)
commit2522fa053b62520ae48b4b27117ca003a2c878ab
treed2ceb47b99259c284a8e01a233464e25febc25c3
parent1d0dc9be6d72915d2bb632c7a46645289405dcbf
[clangd] Do not take stale definition from the static index.

This is follow up to D93393.
Without this patch clangd takes the symbol definition from the static index if this definition was removed from the dynamic index.

Reviewed By: sammccall

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