This is an archive of the discontinued LLVM Phabricator instance.

[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 {};

}
using ::ns::Fo^o;

it only works because of the FileIndex. We can get definition location
directly from AST too.

Diff Detail

Event Timeline

adamcz created this revision.Nov 2 2021, 9:51 AM
adamcz requested review of this revision.Nov 2 2021, 9:51 AM
kadircet accepted this revision.Nov 4 2021, 3:46 AM

thanks, lgtm!

This revision is now accepted and ready to land.Nov 4 2021, 3:46 AM