How to get type of structure variable

Hi all,

I want to output the structure type of certain variables in a program.
Should I go through programAST or CFG ? Which will be easier to get information from ?

Mohit Asudani

The AST. Find the VarDecl, use ValueDecl::getType() to get its type, and then dissect that type with Type::getAs().

  • Doug