Home
last modified time | relevance | path

Searched refs:statementCountIs (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DDeleteNullPointerCheck.cpp44 statementCountIs(1)) in registerMatchers()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNarrowingTest.cpp2657 EXPECT_TRUE(matches("void f() { }", compoundStmt(statementCountIs(0)))); in TEST_P()
2658 EXPECT_TRUE(notMatches("void f() {}", compoundStmt(statementCountIs(1)))); in TEST_P()
2662 EXPECT_TRUE(matches("void f() { 1; }", compoundStmt(statementCountIs(1)))); in TEST_P()
2663 EXPECT_TRUE(notMatches("void f() { 1; }", compoundStmt(statementCountIs(0)))); in TEST_P()
2664 EXPECT_TRUE(notMatches("void f() { 1; }", compoundStmt(statementCountIs(2)))); in TEST_P()
2669 matches("void f() { 1; 2; 3; }", compoundStmt(statementCountIs(3)))); in TEST_P()
2674 compoundStmt(statementCountIs(1)))); in TEST_P()
2676 compoundStmt(statementCountIs(2)))); in TEST_P()
2678 compoundStmt(statementCountIs(3)))); in TEST_P()
2680 compoundStmt(statementCountIs(4)))); in TEST_P()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DInefficientVectorOperationCheck.cpp119 anyOf(compoundStmt(statementCountIs(1), has(AppendCall)), AppendCall)); in addMatcher()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp547 REGISTER_MATCHER(statementCountIs); in RegistryMaps()
/llvm-project-15.0.7/clang/docs/
H A DClangTransformerTutorial.rst345 makeRule(compoundStmt(statementCountIs(0)).bind("empty"), ...),
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h5555 AST_MATCHER_P(CompoundStmt, statementCountIs, unsigned, N) { in AST_MATCHER_P() argument