How to get correct TypeLoc SourceLocation for parameters in explicit template instantiation?

How to get correct TypeLoc SourceLocation for parameters in explicit template instantiation?

• Hi, I’m trying to get the SourceLocation of a type reference inside an explicit template instantiation declaration, for example: struct Foo {}; template void func(const Foo &) {}

Language Internals · February 24, 2026 (updated February 25, 2026) · 2 min · 331 words