Lines Matching refs:declStmt
2859 EXPECT_TRUE(notMatches("void x() {}", declStmt()));
2863 EXPECT_TRUE(matches("void x() { int a; }", declStmt()));
2903 declStmt(hasSingleDecl(varDecl(hasInitializer(anything()))));
2910 TEST(DeclStmt, ContainsDeclaration) {
2914 declStmt(containsDeclaration(0, MatchesInit))));
2916 declStmt(containsDeclaration(0, MatchesInit),
2920 declStmt(containsDeclaration(WrongIndex,
2926 declStmt(declCountIs(2))));
2928 declStmt(declCountIs(3))));
2930 declStmt(declCountIs(3))));
3006 ifStmt(hasConditionVariableStatement(declStmt()))));
3009 ifStmt(hasConditionVariableStatement(declStmt()))));
3015 ifStmt(hasConditionVariableStatement(declStmt()))));
4024 "if", stmt(hasDescendant(declStmt().bind("decl"))), "decl")));