That managed to remove the const and the reference type, but when I try to use the "getAsString" method it returns to me "class Type". I could manually remove the "class  " part, just to know if there is a way to do in a non hackish way.<div>
<br></div><div><br></div><div>Thanks</div><div class="gmail_extra"><br><br><div class="gmail_quote">2012/11/2 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="im">On Fri, Nov 2, 2012 at 2:45 PM, Victor Vicente de Carvalho<br>
<<a href="mailto:victor.v.carvalho@gmail.com">victor.v.carvalho@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> I'm trying without success to recover the unqualified name for a type while<br>
> parsing a CXXMethodDecl. The first problem is that the Type class doesn't<br>
> have a getNameAsString, or getAsString. The second problem is that even<br>
> getting the unqualified type and dumping it still resolves to qualified<br>
> types.<br>
><br>
> Suppose I have a parameter on a function named as "const ClassType& x":<br>
><br>
> all of those:<br>
>  (*param)->getType()->getUnqualifiedDesugaredType()->dump();<br>
>  (*param)->getType().getUnqualifiedType()->dump();<br>
>  (*param)->getType()->dump();<br>
><br>
> returns const ClassType &identifier when dumping.<br>
<br>
</div>Try (*param)->getType().getNonReferenceType().getUnqualifiedType().dump() .<br>
<span class="HOEnZb"><font color="#888888"><br>
-Eli<br>
</font></span></blockquote></div><br></div>