CFGBlock* VisitStmt(Stmt* Statement);
CFGBlock* VisitNullStmt(NullStmt* Statement);
- CFGBlock* VisitParenExpr(ParenExpr* Statement);
CFGBlock* VisitCompoundStmt(CompoundStmt* C);
CFGBlock* VisitIfStmt(IfStmt* I);
CFGBlock* VisitReturnStmt(ReturnStmt* R);
Block->setTerminator(C);
return addStmt(C->getCond());
}
-
- case Stmt::ParenExprClass:
- return WalkAST(cast<ParenExpr>(S)->getSubExpr(),AlwaysAddStmt);
-
+
case Stmt::BinaryOperatorClass: {
BinaryOperator* B = cast<BinaryOperator>(S);
return Block;
}
-CFGBlock* CFGBuilder::VisitParenExpr(ParenExpr* Statement) {
- return Visit(Statement->getSubExpr());
-}
-
-
CFGBlock* CFGBuilder::VisitCompoundStmt(CompoundStmt* C) {
// The value returned from this function is the last created CFGBlock
// that represents the "entry" point for the translated AST node.