<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Apr 6, 2014 at 12:21 AM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is it possible to retrieve the location of a TypeAliasDecl from a<br>
TemplateSpecializationType representing an alias template?<br></blockquote><div><br></div><div>Something like:</div><div><br></div><div>  cast<TypeAliasTemplateDecl>(TST->getTemplateName()->getTemplateDecl())->getTemplatedDecl()</div>
<div><br></div><div>(plus error checking).</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It looks like the connection between the type and the original decl is<br>
lost during construction - I guess it could/should be persisted? (in a<br>
manner similar to TypedefType, for example)<br>
<br>
I don't need the alias template to have specializations like a real<br>
template, so the decl that the TemplateSpecializationType points to<br>
can just be the TypeAliasDecl which is generic/defined in terms of<br>
template arguments.<br>
<br>
Specifically what I need is the location and the DeclContext where the<br>
alias was written so I can accurately describe the alias in the debug<br>
info.<br>
<br>
Thanks,<br>
- David<br>
</blockquote></div><br></div></div>