[clangd] references: decls of overrides of x are refs to x, not decls
authorSam McCall <sam.mccall@gmail.com>
Tue, 26 Jan 2021 16:57:22 +0000 (17:57 +0100)
committerSam McCall <sam.mccall@gmail.com>
Mon, 1 Feb 2021 16:19:19 +0000 (17:19 +0100)
commit8712df7a621d1d00a3fd4641ef72639a8faa6284
treeb3adf1b0abdc4e69e1d08b0284c2e6e802d357b7
parent657e76968822f6fbfc06826e2af88806025e32cb
[clangd] references: decls of overrides of x are refs to x, not decls

This requires a second index query for refs to overrides, as the refs
call doesn't tell you which ref points at which symbol.

Differential Revision: https://reviews.llvm.org/D95451
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/index/Index.h
clang-tools-extra/clangd/unittests/XRefsTests.cpp