Hello,<div><br></div><div>I'm trying without success to recover the unqualified name for a type while parsing a CXXMethodDecl. The first problem is that the Type class doesn't have a getNameAsString, or getAsString. The second problem is that even getting the unqualified type and dumping it still resolves to qualified types.</div>
<div><br></div><div>Suppose I have a parameter on a function named as "const ClassType& x":</div><div><br></div><div>all of those:</div><div><div> (*param)->getType()->getUnqualifiedDesugaredType()->dump();</div>
<div> (*param)->getType().getUnqualifiedType()->dump();</div></div><div> (*param)->getType()->dump();<br></div><div><br></div><div>returns const ClassType &identifier when dumping. </div><div><br></div><div>
How is the best way to retrieve "ClassType" as a string?</div><div><br></div><div><br></div><div>Thanks</div><div><br></div><div><br></div><div><br></div><div>Victor</div><div><br></div><div><br></div>