<div dir="ltr"><div>Thanks, that seems to work.<br><br></div><div>Code for someone stumbling into this question later:<br><br> if (const TemplateSpecializationType* tst<br> = dyn_cast<TemplateSpecializationType>(D->getTypeSourceInfo()->getType().getTypePtr())){<br>
for (uint i = 0; i < tst->getNumArgs(); ++i ) {<br> const TemplateArgument& arg = tst->getArg(i);<br> if (arg.getKind() == TemplateArgument::ArgKind::Type)<br> std::string foo = arg.getAsType().getAsString();<br>
}<br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 5, 2014 at 9:03 PM, Yaron Keren <span dir="ltr"><<a href="mailto:yaron.keren@gmail.com" target="_blank">yaron.keren@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="rtl"><div dir="ltr">I think you need to cast QT.getTypePtr() to a TemplateSpecializationType and then process its TemplateArguments.</div>
<div dir="ltr"><br></div></div><div class="gmail_extra"><div dir="ltr"><br>
<br><div class="gmail_quote">2014-08-05 18:23 GMT+03:00 Manasij Mukherjee <span dir="ltr"><<a href="mailto:manasij7479@gmail.com" target="_blank">manasij7479@gmail.com</a>></span>:<div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>That gives me "A<B> identifier".<br></div><div>(which could also be achieved with QT.getAsString(), afaik)<br></div><div><br></div><div>I have the QualType for A<B>.<br></div><div>
But I have to get "B" from this somehow.<br><br>Sorry if I was <span>ambiguous</span> about that.<br></div></blockquote></div></div></div></div></div>
</blockquote></div><br></div>