libindex will canonicalize references to template instantiations:
- 1) reference to an explicit template specialization, report the specializatiion
- 2) otherwise, report the primary template
but 2) is not true for incomplete instantiations, this patch fixes this.
i believe this might as well be an explicit instantiation, e.g.
could you check what this yield for TKind (and add tests)?
even if this one is also TSK_Undeclared I suppose it is still OK to make use of
TemplatedDecl for indexing purposes, but will likely need some changes in the
function name(ImplicitOrUninstantiated?)/documentation.