[cfe-dev] Location of a TypeAliasDecl from a TemplateSpecializationType
David Blaikie
dblaikie at gmail.com
Sun Apr 6 00:21:17 PDT 2014
Is it possible to retrieve the location of a TypeAliasDecl from a
TemplateSpecializationType representing an alias template?
It looks like the connection between the type and the original decl is
lost during construction - I guess it could/should be persisted? (in a
manner similar to TypedefType, for example)
I don't need the alias template to have specializations like a real
template, so the decl that the TemplateSpecializationType points to
can just be the TypeAliasDecl which is generic/defined in terms of
template arguments.
Specifically what I need is the location and the DeclContext where the
alias was written so I can accurately describe the alias in the debug
info.
Thanks,
- David
More information about the cfe-dev
mailing list