/external/clang/unittests/AST/ |
D | ASTImporterTest.cpp | 110 compoundStmt( in TEST() 119 compoundStmt( in TEST() 128 compoundStmt( in TEST() 141 compoundStmt( in TEST() 153 compoundStmt( in TEST() 165 compoundStmt( in TEST() 174 compoundStmt( in TEST() 191 compoundStmt( in TEST() 215 compoundStmt( in TEST() 227 functionDecl(hasBody(compoundStmt(has(atomicExpr( in TEST() [all …]
|
D | ASTContextParentMapTest.cpp | 34 ifStmt(hasParent(compoundStmt())))); in TEST() 76 compoundStmt(allOf( in TEST()
|
D | StmtPrinterTest.cpp | 119 has(compoundStmt(has(stmt().bind("id"))))), in PrintedStmtCXX98Matches() 145 has(compoundStmt(has(stmt().bind("id"))))), in PrintedStmtMSMatches()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | SpuriouslyWakeUpFunctionsCheck.cpp | 83 hasParent(compoundStmt(hasParent(whileStmt()))), in registerMatchers() 85 hasParent(compoundStmt(hasParent(forStmt()))), in registerMatchers() 87 hasParent(compoundStmt(hasParent(doStmt()))))) in registerMatchers()
|
D | UndelegatedConstructorCheck.cpp | 60 compoundStmt(hasParent(cxxConstructorDecl( in registerMatchers()
|
D | UnusedRaiiCheck.cpp | 38 hasParent(compoundStmt().bind("compound")), in registerMatchers()
|
D | UnusedReturnValueCheck.cpp | 146 compoundStmt(forEach(MatchedCallExpr), in registerMatchers()
|
D | MultipleStatementMacroCheck.cpp | 59 const auto Inner = expr(isInMacro(), unless(compoundStmt())).bind("inner"); in registerMatchers()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
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()
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 1007 forStmt(hasBody(compoundStmt())))); in TEST() 1009 forStmt(hasBody(compoundStmt())))); in TEST() 1011 whileStmt(hasBody(compoundStmt())))); in TEST() 1013 doStmt(hasBody(compoundStmt())))); in TEST() 1015 cxxForRangeStmt(hasBody(compoundStmt())))); in TEST() 1016 EXPECT_TRUE(matches("void f() {}", functionDecl(hasBody(compoundStmt())))); in TEST() 1017 EXPECT_TRUE(notMatches("void f();", functionDecl(hasBody(compoundStmt())))); in TEST() 1019 functionDecl(hasBody(compoundStmt())))); in TEST() 1027 compoundStmt(hasAnySubstatement(forStmt())))); in TEST() 1033 compoundStmt(hasAnySubstatement(forStmt())))); in TEST() [all …]
|
D | ASTMatchersNarrowingTest.cpp | 1322 compoundStmt(statementCountIs(0)))); in TEST() 1324 compoundStmt(statementCountIs(1)))); in TEST() 1329 compoundStmt(statementCountIs(1)))); in TEST() 1331 compoundStmt(statementCountIs(0)))); in TEST() 1333 compoundStmt(statementCountIs(2)))); in TEST() 1338 compoundStmt(statementCountIs(3)))); in TEST() 1343 compoundStmt(statementCountIs(1)))); in TEST() 1345 compoundStmt(statementCountIs(2)))); in TEST() 1347 compoundStmt(statementCountIs(3)))); in TEST() 1349 compoundStmt(statementCountIs(4)))); in TEST()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | RedundantControlFlowCheck.cpp | 37 has(compoundStmt(hasAnySubstatement(returnStmt(unless(has(expr()))))) in registerMatchers() 41 has(compoundStmt(hasAnySubstatement(continueStmt())).bind("continue")); in registerMatchers()
|
D | DeleteNullPointerCheck.cpp | 46 compoundStmt(anyOf(has(DeleteExpr), in registerMatchers()
|
D | SimplifyBooleanExprCheck.cpp | 84 compoundStmt(statementCountIs(1), has(SimpleReturnsBool))); in returnsBool() 490 auto Then = anyOf(SimpleThen, compoundStmt(statementCountIs(1), in matchIfAssignsBool() 495 auto Else = anyOf(SimpleElse, compoundStmt(statementCountIs(1), in matchIfAssignsBool() 514 compoundStmt( in matchCompoundIfReturnsBool()
|
D | ElseAfterReturnCheck.cpp | 177 compoundStmt( in registerMatchers() 181 compoundStmt(has(InterruptsControlFlow))))), in registerMatchers()
|
D | MisleadingIndentationCheck.cpp | 115 compoundStmt(has(stmt(anyOf(ifStmt(), forStmt(), whileStmt())))) in registerMatchers()
|
/external/llvm-project/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 1606 forStmt(hasBody(compoundStmt())))); in TEST() 1608 forStmt(hasBody(compoundStmt())))); in TEST() 1610 whileStmt(hasBody(compoundStmt())))); in TEST() 1612 doStmt(hasBody(compoundStmt())))); in TEST() 1614 cxxForRangeStmt(hasBody(compoundStmt())))); in TEST() 1618 EXPECT_TRUE(matches("void f() {}", functionDecl(hasBody(compoundStmt())))); in TEST() 1619 EXPECT_TRUE(notMatches("void f();", functionDecl(hasBody(compoundStmt())))); in TEST() 1622 functionDecl(hasBody(compoundStmt())).bind("func"), in TEST() 1626 cxxMethodDecl(hasBody(compoundStmt())).bind("met"), in TEST() 1630 cxxConstructorDecl(hasBody(compoundStmt())).bind("ctr"), in TEST() [all …]
|
D | ASTMatchersNarrowingTest.cpp | 2155 EXPECT_TRUE(matches("void f() { }", compoundStmt(statementCountIs(0)))); in TEST_P() 2156 EXPECT_TRUE(notMatches("void f() {}", compoundStmt(statementCountIs(1)))); in TEST_P() 2160 EXPECT_TRUE(matches("void f() { 1; }", compoundStmt(statementCountIs(1)))); in TEST_P() 2161 EXPECT_TRUE(notMatches("void f() { 1; }", compoundStmt(statementCountIs(0)))); in TEST_P() 2162 EXPECT_TRUE(notMatches("void f() { 1; }", compoundStmt(statementCountIs(2)))); in TEST_P() 2167 matches("void f() { 1; 2; 3; }", compoundStmt(statementCountIs(3)))); in TEST_P() 2172 compoundStmt(statementCountIs(1)))); in TEST_P() 2174 compoundStmt(statementCountIs(2)))); in TEST_P() 2176 compoundStmt(statementCountIs(3)))); in TEST_P() 2178 compoundStmt(statementCountIs(4)))); in TEST_P() [all …]
|
/external/llvm-project/clang/unittests/AST/ |
D | ASTContextParentMapTest.cpp | 36 ifStmt(hasParent(compoundStmt())))); in TEST() 78 compoundStmt(allOf( in TEST()
|
D | StmtPrinterTest.cpp | 38 has(compoundStmt(has(stmt().bind("id"))))); in FunctionBodyMatcher()
|
/external/llvm-project/clang-tools-extra/clang-tidy/linuxkernel/ |
D | MustCheckErrsCheck.cpp | 23 auto NonCheckingStmts = stmt(anyOf(compoundStmt(), labelStmt())); in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
D | InefficientVectorOperationCheck.cpp | 115 anyOf(compoundStmt(statementCountIs(1), has(AppendCall)), AppendCall)); in AddMatcher() 117 hasParent(compoundStmt(has(TargetVarDefStmt)).bind(LoopParentName)); in AddMatcher()
|
D | UnnecessaryCopyInitialization.cpp | 61 return compoundStmt( in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | UseEqualsDefaultCheck.cpp | 157 compoundStmt(has(ignoringParenImpCasts(cxxMemberCallExpr( in isCopyAssignmentAndCanBeDefaulted() 188 compoundStmt(has(ignoringParenImpCasts(stmt(anyOf( in isCopyAssignmentAndCanBeDefaulted()
|
/external/llvm-project/clang-tools-extra/clang-tidy/utils/ |
D | NamespaceAliaser.cpp | 46 "alias", match(functionDecl(hasBody(compoundStmt(has(declStmt( in createAlias()
|