mizvekov wrote:

> The most important part for me, is that if 
> `TagDecl::isThisDeclarationADefinition()` returns true, then I need 
> `getSourceRange()` to return the content of the definition.

That's a more interesting limited part of the problem.

It seems strange to me that we produce a template instantiation which is a 
complete definition, but we somehow think the pattern used to produce it is a 
non-defining declaration. Maybe we could fix that instead?



https://github.com/llvm/llvm-project/pull/156011
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to