[cfe-users] Parse type declarations with clang ASTConsumer?
bobby.fairman at mail.com
Tue Feb 5 07:55:13 PST 2013
Hi, I'm new to clang and am trying to parse and model c/c++ variable type declarations and function prototypes (ie. "int foo" or "long __thiscall BarClass::Funk1( long, int ** )" ) with clang, similar to how the cdecl tool works (but has to work with c++).
I tried extending HandleTopLevelDecl() from ASTConsumer when parsing a decaration. Is this the correct way to go?
I am having trouble drilling down into the clang::Decl objects that HandleTopLevelDecl is giving me. Can anybody point me in the direction or examples of the correct way to pull out all the type information?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-users