23 LoopControlFlowVisitor() {}
25 bool visitExpression(
const Expression& expr)
override {
30 bool visitStatement(
const Statement& stmt)
override {
31 switch (stmt.
kind()) {
38 case Statement::Kind::kBreak:
44 case Statement::Kind::kReturn:
49 case Statement::Kind::kFor:
50 case Statement::Kind::kDo:
51 case Statement::Kind::kSwitch: {
73 LoopControlFlowVisitor visitor;
74 visitor.visitStatement(stmt);
75 return visitor.fResult;
static void done(const char *config, const char *src, const char *srcOptions, const char *name)
LoopControlFlowInfo fResult
virtual bool visitStatement(typename T::Statement &statement)
LoopControlFlowInfo GetLoopControlFlowInfo(const Statement &stmt)