Page MenuHomePhabricator

[clangd] Find definition of ClassTemplate without going through index.
ClosedPublic

Authored by adamcz on Tue, Nov 2, 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.Tue, Nov 2, 9:51 AM
adamcz requested review of this revision.Tue, Nov 2, 9:51 AM
kadircet accepted this revision.Thu, Nov 4, 3:46 AM

thanks, lgtm!

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