Is there a way to make clang_complete
complete templates like this one:
template <class T>
class X {
int member_;
};
template <class U>
void foo() {
X<U> x;
x. //<-- autocomplete member_ (doesn’t work)
}
This doesn’t work because the compiler doesn’t know what U
is. And of course there could be a specialization of X
that has other members.
But it would be helpful and very productive to be able to:
- fallback to the generic version of the template if the template argument isn’t yet deduced
- (or) cumulate generic and all specializations of the template and display them all.
Can this be done?