Home
last modified time | relevance | path

Searched refs:compoundStmt (Results 1 – 25 of 35) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DGCDAntipatternChecker.cpp90 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 DRedundantControlFlowCheck.cpp36 hasBody(compoundStmt(hasAnySubstatement( in registerMatchers()
42 .with(hasBody(compoundStmt(hasAnySubstatement(continueStmt())) in registerMatchers()
H A DDeleteNullPointerCheck.cpp43 compoundStmt(anyOf(has(DeleteExpr), has(DeleteMemberExpr)), in registerMatchers()
H A DElseAfterReturnCheck.cpp176 compoundStmt( in registerMatchers()
180 compoundStmt(has(InterruptsControlFlow))))), in registerMatchers()
H A DMisleadingIndentationCheck.cpp111 compoundStmt(has(stmt(anyOf(ifStmt(), forStmt(), whileStmt())))) in registerMatchers()
H A DIsolateDeclarationCheck.cpp29 hasParent(compoundStmt())) in registerMatchers()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTContextParentMapTest.cpp36 ifStmt(hasParent(compoundStmt())))); in TEST()
78 compoundStmt(allOf( in TEST()
H A DStmtPrinterTest.cpp38 has(compoundStmt(has(stmt().bind("id"))))); in FunctionBodyMatcher()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersTraversalTest.cpp583 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 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()
[all …]
H A DASTMatchersNodeTest.cpp1162 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 DMustCheckErrsCheck.cpp23 auto NonCheckingStmts = stmt(anyOf(compoundStmt(), labelStmt())); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DInefficientVectorOperationCheck.cpp119 anyOf(compoundStmt(statementCountIs(1), has(AppendCall)), AppendCall)); in addMatcher()
121 hasParent(compoundStmt(has(TargetVarDefStmt)).bind(LoopParentName)); in addMatcher()
H A DUnnecessaryCopyInitialization.cpp229 return compoundStmt( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUndelegatedConstructorCheck.cpp60 compoundStmt(hasParent(cxxConstructorDecl( in registerMatchers()
H A DUnusedReturnValueCheck.cpp145 compoundStmt(forEach(MatchedCallExpr), in registerMatchers()
H A DUnusedRaiiCheck.cpp31 .with(hasParent(compoundStmt().bind("compound")), in registerMatchers()
H A DSpuriouslyWakeUpFunctionsCheck.cpp74 hasParent(compoundStmt( in registerMatchers()
H A DMultipleStatementMacroCheck.cpp59 const auto Inner = expr(isInMacro(), unless(compoundStmt())).bind("inner"); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseEqualsDefaultCheck.cpp157 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 DNamespaceAliaser.cpp46 "alias", match(functionDecl(hasBody(compoundStmt(has(declStmt( in createAlias()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DRangeSelectorTest.cpp99 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 DConstCorrectnessCheck.cpp99 compoundStmt(forEachDescendant( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DIdDependentBackwardBranchCheck.cpp30 compoundStmt( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DPreferMemberInitializerCheck.cpp145 cxxConstructorDecl(hasBody(compoundStmt()), unless(isInstantiated())) in registerMatchers()

12