get_SubStmts_From_Stmt

Dear all,
I am interested in the operation on the CFGStmt.
Now I have got a CFGStmt like,"i = 1 + j2;". What APIs and Structs should I make use of to get these three SubStmts (they are :1, j, 2) from the parent Stmt ( it is i = 1 + j2).
Cheers.
/by Redder.

Dear all,
I am interested in the operation on the CFGStmt.
Now I have got a CFGStmt like,"i = 1 + j*2;". What APIs and Structs should
I make use of to get these three SubStmts (they are :1, j, 2) from the
parent Stmt ( it is i = 1 + j*2).

Look at the clang doxygen starting from Stmt
(http://clang.llvm.org/doxygen/classclang_1_1Stmt.html) to learn how
to traverse the AST. The general idea is that you dyn_cast your Stmt
into its real type, and then use the methods on that type to do the
traversal. See RecursiveASTVisitor for something more generic.

Cheers,
/Manuel