[cfe-dev] Recovering the unqualified class name from a function parameter

Victor Vicente de Carvalho victor.v.carvalho at gmail.com
Fri Nov 2 14:45:11 PDT 2012


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

Suppose I have a parameter on a function named as "const ClassType& x":

all of those:

returns const ClassType &identifier when dumping.

How is the best way to retrieve "ClassType" as a string?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121102/37748a06/attachment.html>

More information about the cfe-dev mailing list