| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | GCDAntipatternChecker.cpp | 90 static auto findGCDAntiPatternWithSemaphore() -> decltype(compoundStmt()) { in findGCDAntiPatternWithSemaphore() 130 return compoundStmt( in findGCDAntiPatternWithSemaphore() 134 static auto findGCDAntiPatternWithGroup() -> decltype(compoundStmt()) { in findGCDAntiPatternWithGroup() 176 return compoundStmt(GroupBindingM, GroupEnterM, AcceptsBlockM, GroupWaitM); in findGCDAntiPatternWithGroup()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | RedundantControlFlowCheck.cpp | 36 hasBody(compoundStmt(hasAnySubstatement( in registerMatchers() 42 .with(hasBody(compoundStmt(hasAnySubstatement(continueStmt())) in registerMatchers()
|
| H A D | DeleteNullPointerCheck.cpp | 43 compoundStmt(anyOf(has(DeleteExpr), has(DeleteMemberExpr)), in registerMatchers()
|
| H A D | ElseAfterReturnCheck.cpp | 176 compoundStmt( in registerMatchers() 180 compoundStmt(has(InterruptsControlFlow))))), in registerMatchers()
|
| H A D | MisleadingIndentationCheck.cpp | 111 compoundStmt(has(stmt(anyOf(ifStmt(), forStmt(), whileStmt())))) in registerMatchers()
|
| H A D | IsolateDeclarationCheck.cpp | 29 hasParent(compoundStmt())) in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | ASTContextParentMapTest.cpp | 36 ifStmt(hasParent(compoundStmt())))); in TEST() 78 compoundStmt(allOf( in TEST()
|
| H A D | StmtPrinterTest.cpp | 38 has(compoundStmt(has(stmt().bind("id"))))); in FunctionBodyMatcher()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersTraversalTest.cpp | 583 hasBody(compoundStmt()), in TEST() 588 hasBody(compoundStmt()), in TEST() 593 hasBody(compoundStmt()), in TEST() 2059 doStmt(hasBody(compoundStmt())))); in TEST() 3191 auto M = cxxForRangeStmt(has(compoundStmt())); in TEST() 3868 compoundStmt( in TEST() 5267 compoundStmt(hasParent(ifStmt())))); in TEST() 5270 compoundStmt(hasParent(ifStmt())))); in TEST() 5273 compoundStmt(hasParent(ifStmt())))); in TEST() 5367 hasParent(compoundStmt(hasParent(functionDecl( in TEST() [all …]
|
| H A D | ASTMatchersNarrowingTest.cpp | 2657 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() [all …]
|
| H A D | ASTMatchersNodeTest.cpp | 1162 EXPECT_TRUE(notMatches("void f();", compoundStmt())); in TEST_P() 1163 EXPECT_TRUE(matches("void f() {}", compoundStmt())); in TEST_P() 1164 EXPECT_TRUE(matches("void f() {{}}", compoundStmt())); in TEST_P() 1174 EXPECT_TRUE(notMatches("namespace n { struct S {}; }", compoundStmt())); in TEST_P() 1176 matches("namespace n { struct S { void f() {{}} }; }", compoundStmt())); in TEST_P()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/linuxkernel/ |
| H A D | MustCheckErrsCheck.cpp | 23 auto NonCheckingStmts = stmt(anyOf(compoundStmt(), labelStmt())); in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | InefficientVectorOperationCheck.cpp | 119 anyOf(compoundStmt(statementCountIs(1), has(AppendCall)), AppendCall)); in addMatcher() 121 hasParent(compoundStmt(has(TargetVarDefStmt)).bind(LoopParentName)); in addMatcher()
|
| H A D | UnnecessaryCopyInitialization.cpp | 229 return compoundStmt( in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | UndelegatedConstructorCheck.cpp | 60 compoundStmt(hasParent(cxxConstructorDecl( in registerMatchers()
|
| H A D | UnusedReturnValueCheck.cpp | 145 compoundStmt(forEach(MatchedCallExpr), in registerMatchers()
|
| H A D | UnusedRaiiCheck.cpp | 31 .with(hasParent(compoundStmt().bind("compound")), in registerMatchers()
|
| H A D | SpuriouslyWakeUpFunctionsCheck.cpp | 74 hasParent(compoundStmt( in registerMatchers()
|
| H A D | MultipleStatementMacroCheck.cpp | 59 const auto Inner = expr(isInMacro(), unless(compoundStmt())).bind("inner"); in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseEqualsDefaultCheck.cpp | 157 compoundStmt(has(ignoringParenImpCasts(cxxMemberCallExpr( in isCopyAssignmentAndCanBeDefaulted() 187 compoundStmt(has(ignoringParenImpCasts(binaryOperation( in isCopyAssignmentAndCanBeDefaulted()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | NamespaceAliaser.cpp | 46 "alias", match(functionDecl(hasBody(compoundStmt(has(declStmt( in createAlias()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | RangeSelectorTest.cpp | 99 compoundStmt( in selectFromAssorted() 645 TestMatch Match = matchCode(Code, compoundStmt().bind(ID)); in TEST() 654 TestMatch Match = matchCode(Code, compoundStmt().bind(ID)); in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | ConstCorrectnessCheck.cpp | 99 compoundStmt(forEachDescendant( in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/ |
| H A D | IdDependentBackwardBranchCheck.cpp | 30 compoundStmt( in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | PreferMemberInitializerCheck.cpp | 145 cxxConstructorDecl(hasBody(compoundStmt()), unless(isInstantiated())) in registerMatchers()
|