[cfe-dev] Criticism over a clang tool to reorder fields on constructor declarations

Jens Weller JensWeller at gmx.de
Fri Aug 17 13:20:51 PDT 2012


Hi,

interesting questions. I'm new to clang, so if there is a better solution, let me know...

> 1 - How do I detect and generate the class name for nested classes?  I'm
> using  CXXConstructorDecl getNameAsString() but it only returns to me the
> name of the enclosing class.

Have you tried getQualifiedNameAsString()?
Maybe you're pointing an Element of the Enclosing class?

Also, maybe getParent() can point you at the correct Class Node.

regards,

Jens Weller



More information about the cfe-dev mailing list