<div dir="ltr">Thanks Eli, so It's just a matter of dyn_cast the Type* to RecordType*? <div><br></div><div>Another question, what's the best way to detect is a Type has atemplate parameters?</div><div><br></div><div>
<br></div><div>Victor</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/6 Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com" target="_blank">eli.friedman@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sat, Jul 6, 2013 at 2:26 PM, Victor Vicente de Carvalho<br>
<<a href="mailto:victor.v.carvalho@gmail.com">victor.v.carvalho@gmail.com</a>> wrote:<br>
> It's possible to recover the TypeDecl* from a QualType (or it's underlying<br>
> Type*)?<br>
><br>
<br>
</div></div>There isn't a generic method, but you can do it for specific types,<br>
e.g. RecordType has a getDecl() method.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Eli<br>
</font></span></blockquote></div><br></div>