Home
last modified time | relevance | path

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

12

/external/clang/unittests/AST/
DASTImporterTest.cpp110 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 …]
DASTContextParentMapTest.cpp34 ifStmt(hasParent(compoundStmt())))); in TEST()
76 compoundStmt(allOf( in TEST()
DStmtPrinterTest.cpp119 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/
DSpuriouslyWakeUpFunctionsCheck.cpp83 hasParent(compoundStmt(hasParent(whileStmt()))), in registerMatchers()
85 hasParent(compoundStmt(hasParent(forStmt()))), in registerMatchers()
87 hasParent(compoundStmt(hasParent(doStmt()))))) in registerMatchers()
DUndelegatedConstructorCheck.cpp60 compoundStmt(hasParent(cxxConstructorDecl( in registerMatchers()
DUnusedRaiiCheck.cpp38 hasParent(compoundStmt().bind("compound")), in registerMatchers()
DUnusedReturnValueCheck.cpp146 compoundStmt(forEach(MatchedCallExpr), in registerMatchers()
DMultipleStatementMacroCheck.cpp59 const auto Inner = expr(isInMacro(), unless(compoundStmt())).bind("inner"); in registerMatchers()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
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()
/external/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp1007 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 …]
DASTMatchersNarrowingTest.cpp1322 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/
DRedundantControlFlowCheck.cpp37 has(compoundStmt(hasAnySubstatement(returnStmt(unless(has(expr()))))) in registerMatchers()
41 has(compoundStmt(hasAnySubstatement(continueStmt())).bind("continue")); in registerMatchers()
DDeleteNullPointerCheck.cpp46 compoundStmt(anyOf(has(DeleteExpr), in registerMatchers()
DSimplifyBooleanExprCheck.cpp84 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()
DElseAfterReturnCheck.cpp177 compoundStmt( in registerMatchers()
181 compoundStmt(has(InterruptsControlFlow))))), in registerMatchers()
DMisleadingIndentationCheck.cpp115 compoundStmt(has(stmt(anyOf(ifStmt(), forStmt(), whileStmt())))) in registerMatchers()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp1606 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 …]
DASTMatchersNarrowingTest.cpp2155 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/
DASTContextParentMapTest.cpp36 ifStmt(hasParent(compoundStmt())))); in TEST()
78 compoundStmt(allOf( in TEST()
DStmtPrinterTest.cpp38 has(compoundStmt(has(stmt().bind("id"))))); in FunctionBodyMatcher()
/external/llvm-project/clang-tools-extra/clang-tidy/linuxkernel/
DMustCheckErrsCheck.cpp23 auto NonCheckingStmts = stmt(anyOf(compoundStmt(), labelStmt())); in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DInefficientVectorOperationCheck.cpp115 anyOf(compoundStmt(statementCountIs(1), has(AppendCall)), AppendCall)); in AddMatcher()
117 hasParent(compoundStmt(has(TargetVarDefStmt)).bind(LoopParentName)); in AddMatcher()
DUnnecessaryCopyInitialization.cpp61 return compoundStmt( in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseEqualsDefaultCheck.cpp157 compoundStmt(has(ignoringParenImpCasts(cxxMemberCallExpr( in isCopyAssignmentAndCanBeDefaulted()
188 compoundStmt(has(ignoringParenImpCasts(stmt(anyOf( in isCopyAssignmentAndCanBeDefaulted()
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DNamespaceAliaser.cpp46 "alias", match(functionDecl(hasBody(compoundStmt(has(declStmt( in createAlias()

12