I noticed that, while go-to-def works on cases like:
namespace ns {
template<typename T> struct Foo {};
}
using ::ns::Fo^o;
it only works because of the FileIndex. We can get definition location
directly from AST too.
Paths
| Differential D113029
[clangd] Find definition of ClassTemplate without going through index. ClosedPublic Authored by adamcz on Nov 2 2021, 9:51 AM.
Details Summary I noticed that, while go-to-def works on cases like: namespace ns { template<typename T> struct Foo {}; } it only works because of the FileIndex. We can get definition location
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Nov 4 2021, 3:46 AM Closed by commit rG97fbc975fab1: [clangd] Find definition of ClassTemplate without going through index. (authored by adamcz). · Explain WhyNov 4 2021, 7:26 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 384750 clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/unittests/XRefsTests.cpp
|