Searched refs:forStmt (Results 1 - 2 of 2) sorted by relevance

/external/clang/unittests/ASTMatchers/
H A DASTMatchersTest.cpp1961 EXPECT_TRUE(matches("void f() { for(;;); }", forStmt()));
1962 EXPECT_TRUE(matches("void f() { if(true) for(;;); }", forStmt()));
1967 forStmt(hasCondition(anything()))));
1969 forStmt(hasLoopInit(anything()))));
1974 forStmt(hasCondition(expr()))));
1976 forStmt(hasLoopInit(anything()))));
1980 EXPECT_TRUE(notMatches("void f() { ; }", forStmt()));
1981 EXPECT_TRUE(notMatches("void f() { if(true); }", forStmt()));
2001 forStmt(hasBody(compoundStmt()))));
2003 forStmt(hasBod
[all...]
/external/clang/include/clang/ASTMatchers/
H A DASTMatchers.h666 const internal::VariadicDynCastAllOfMatcher<Stmt, ForStmt> forStmt; member in namespace:clang::ast_matchers
671 /// forStmt(hasIncrement(unaryOperator(hasOperatorName("++"))))
686 /// forStmt(hasLoopInit(declStmt()))

Completed in 80 milliseconds