<div dir="ltr">+Richard should know that answer to that :)</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 17, 2015 at 4:51 PM, Stephan Bergmann <span dir="ltr"><<a href="mailto:sbergman@redhat.com" target="_blank">sbergman@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I naively assumed AST::Type::getAs<T>() would work regardless whether T represents sugar or not, and looking closer it is indeed specialized for TypedefType, TemplateSpecializationType, and AttributeType to make those work, but not for other sugar like SubstTemplateTypeParmType.<br>
<br>
For example, t->getAs<SubstTemplateTypeParmType>() does not work if t is a wrapping TypedefType (but happens to work if t itself already is a SubsTemplateTypeParmType).  Is that intended?<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>