Hi all,<br> I am trying to find the function calls from the .c or .cpp input file. I used ASTConsumer and VisitStmt for AST traversal.<br><br>class CGASTActionConsumer:public ASTConsumer{<br> virtual bool HandleTopLevelDecl(DeclGroupRef DG)<br>
{<br> //find each FunctionDecl;<br> }<br>}; <br><br>class Builder:public StmtVisitor<Builder><br> {<br> //visit CallExpr<br> };<br><br>I am able to find the simple function calls but the function calls from switch case, while loop etc is not getting . what can i do to get the function calls from switch statement ,while statement etc.<br>
<br>thanks<br> akshay<br>