<span style='font-family:Verdana'><span style='font-size:12px'>Hi, I'm new to clang and am trying to parse and model c/c++ variable type declarations and function prototypes (ie. "int foo[123]" or "long __thiscall BarClass::Funk1( long, int ** )" ) with clang, similar to how the cdecl tool works (but has to work with c++).<div> </div><div>I tried extending HandleTopLevelDecl() from ASTConsumer when parsing a decaration. Is this the correct way to go?</div><div> </div><div>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?</div><div> </div><div>Many thanks!!</div><div> </div><div>- B</div></span></span>