Home | History | Annotate | Download | only in ASTMatchers

Lines Matching refs:forStmt

967   StatementMatcher ForStmt =
968 forStmt(hasCondition(cxxBoolLiteral(equals(true))));
969 EXPECT_TRUE(matches("void x() { for (;true;) {} }", ForStmt));
970 EXPECT_TRUE(notMatches("void x() { for (;false;) {} }", ForStmt));
985 forStmt(hasCondition(anything()))));
987 forStmt(hasLoopInit(anything()))));
1000 forStmt(hasCondition(expr()))));
1002 forStmt(hasLoopInit(anything()))));
1007 forStmt(hasBody(compoundStmt()))));
1009 forStmt(hasBody(compoundStmt()))));
1027 compoundStmt(hasAnySubstatement(forStmt()))));
1033 compoundStmt(hasAnySubstatement(forStmt()))));
1038 compoundStmt(hasAnySubstatement(forStmt()))));
1043 compoundStmt(hasAnySubstatement(forStmt()))));
1950 "if", stmt(hasDescendant(forStmt().bind("for"))), "for")));