[clangd] Use index for go-to-type
authorSam McCall <sam.mccall@gmail.com>
Thu, 20 Jul 2023 22:23:35 +0000 (00:23 +0200)
committerSam McCall <sam.mccall@gmail.com>
Fri, 21 Jul 2023 21:10:33 +0000 (23:10 +0200)
commitd9d9a2cb2f0db7a92eb7d5ef0c619fb41aa5c8a8
tree5e067a1858dff42dbd3397690603f2faafe4e810
parentee032bccc934d034909962a9306f7c9d1ca72759
[clangd] Use index for go-to-type

This ensures it finds the definition even if not visible.

Differential Revision: https://reviews.llvm.org/D155898
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/XRefs.h
clang-tools-extra/clangd/unittests/XRefsTests.cpp