<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt">NamedDecl has getQualifiedNameAsString(). If you drill through to the decl from the type (in your case getPointeeCXXRecordDecl should do) you can use it to get the fully qualified name. (There might be easier ways I'm not aware of :)<br>
<br><div>Cheers,<br><div>/Manuel</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 14, 2012 at 3:13 AM, Pascal Ognibene <span dir="ltr"><<a href="mailto:pognibene@gmail.com" target="_blank">pognibene@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br><br>I have a clang::ParmVarDecl argument of a C++ function/method.<br>I need to retrieve the fully scoped type of this argument. For example:<br>
<br>namespace foo<br>{<br> typedef struct<br> {<br> int bla;<br>
} oneStruct;<br>}<br><br>...<br><br>namespace foo<br>{<br> int one_function(oneStruct *arg);<br>};<br><br>When I get the clang::FunctionDecl * for one_function, I then get a ParmVarDecl * for arg.<br>To get the type I can use one of the QualType type = ParmVarDecl::get*Type() functions.<br>
However, when I get the type as a string, it's oneStruct * and not foo:oneStruct *<br><br>How can I get the fully scoped name of this parameter? (using clang 3.1)<br><br>Thank you for your help!<span class="HOEnZb"><font color="#888888"><br>
<br>Pascal<br><br>
</font></span><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">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>
<br></blockquote></div><br></div></div>