|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 2041 compoundStmt;
References
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp 158 REGISTER_MATCHER(compoundStmt);
tools/clang/lib/StaticAnalyzer/Checkers/GCDAntipatternChecker.cpp 92 static auto findGCDAntiPatternWithSemaphore() -> decltype(compoundStmt()) {
132 return compoundStmt(
136 static auto findGCDAntiPatternWithGroup() -> decltype(compoundStmt()) {
178 return compoundStmt(GroupBindingM, GroupEnterM, AcceptsBlockM, GroupWaitM);
tools/clang/tools/extra/clang-tidy/bugprone/MultipleStatementMacroCheck.cpp 59 const auto Inner = expr(isInMacro(), unless(compoundStmt())).bind("inner");
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp 532 hasAncestor(compoundStmt(hasDescendant(binaryOperator(
692 unless(hasAncestor(compoundStmt(
tools/clang/tools/extra/clang-tidy/bugprone/UndelegatedConstructorCheck.cpp 63 compoundStmt(
tools/clang/tools/extra/clang-tidy/bugprone/UnusedRaiiCheck.cpp 40 hasParent(compoundStmt().bind("compound")),
tools/clang/tools/extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp 63 compoundStmt(forEach(MatchedCallExpr),
tools/clang/tools/extra/clang-tidy/linuxkernel/MustCheckErrsCheck.cpp 23 auto NonCheckingStmts = stmt(anyOf(compoundStmt(), labelStmt()));
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp 148 compoundStmt(has(ignoringParenImpCasts(cxxMemberCallExpr(
176 compoundStmt(has(ignoringParenImpCasts(stmt(anyOf(
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp 115 anyOf(compoundStmt(statementCountIs(1), has(AppendCall)), AppendCall));
117 hasParent(compoundStmt(has(TargetVarDefStmt)).bind(LoopParentName));
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp 56 return compoundStmt(
tools/clang/tools/extra/clang-tidy/readability/DeleteNullPointerCheck.cpp 46 compoundStmt(anyOf(has(DeleteExpr), has(DeleteMemberExpr)),
tools/clang/tools/extra/clang-tidy/readability/ElseAfterReturnCheck.cpp 26 compoundStmt(forEach(
36 compoundStmt(has(InterruptsControlFlow))))),
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp 29 hasParent(compoundStmt()))
tools/clang/tools/extra/clang-tidy/readability/MisleadingIndentationCheck.cpp 111 compoundStmt(has(stmt(anyOf(ifStmt(), forStmt(), whileStmt()))))
tools/clang/tools/extra/clang-tidy/readability/RedundantControlFlowCheck.cpp 37 has(compoundStmt(hasAnySubstatement(returnStmt(unless(has(expr())))))
41 has(compoundStmt(hasAnySubstatement(continueStmt())).bind("continue"));
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp 72 compoundStmt(statementCountIs(1), has(SimpleReturnsBool)));
470 auto Then = anyOf(SimpleThen, compoundStmt(statementCountIs(1),
475 auto Else = anyOf(SimpleElse, compoundStmt(statementCountIs(1),
490 compoundStmt(
tools/clang/tools/extra/clang-tidy/utils/NamespaceAliaser.cpp 47 match(functionDecl(hasBody(compoundStmt(has(declStmt(
tools/clang/unittests/AST/ASTContextParentMapTest.cpp 36 ifStmt(hasParent(compoundStmt()))));
78 compoundStmt(allOf(
tools/clang/unittests/AST/ASTImporterTest.cpp 606 hasBody(compoundStmt(has(declStmt(hasSingleDecl(
618 switchStmt(has(compoundStmt(has(caseStmt())))))));
951 functionDecl(hasBody(compoundStmt(
2947 functionTemplateDecl(has(functionDecl(has(compoundStmt(
2958 functionTemplateDecl(has(functionDecl(has(compoundStmt(
2985 compoundStmt(has(callExpr(has(unresolvedMemberExpr())))))))));
tools/clang/unittests/AST/StmtPrinterTest.cpp 38 has(compoundStmt(has(stmt().bind("id")))));
tools/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp 1577 compoundStmt(statementCountIs(0))));
1579 compoundStmt(statementCountIs(1))));
1584 compoundStmt(statementCountIs(1))));
1586 compoundStmt(statementCountIs(0))));
1588 compoundStmt(statementCountIs(2))));
1593 compoundStmt(statementCountIs(3))));
1598 compoundStmt(statementCountIs(1))));
1600 compoundStmt(statementCountIs(2))));
1602 compoundStmt(statementCountIs(3))));
1604 compoundStmt(statementCountIs(4))));
2545 matchesWithOpenMP(Source1, stmt(compoundStmt(), isOMPStructuredBlock())));
2565 Source1, ompExecutableDirective(hasStructuredBlock(compoundStmt()))));
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp 917 EXPECT_TRUE(notMatches("void f();", compoundStmt()));
918 EXPECT_TRUE(matches("void f() {}", compoundStmt()));
919 EXPECT_TRUE(matches("void f() {{}}", compoundStmt()));
926 compoundStmt()));
928 compoundStmt()));
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp 1380 forStmt(hasBody(compoundStmt()))));
1382 forStmt(hasBody(compoundStmt()))));
1384 whileStmt(hasBody(compoundStmt()))));
1386 doStmt(hasBody(compoundStmt()))));
1388 cxxForRangeStmt(hasBody(compoundStmt()))));
1389 EXPECT_TRUE(matches("void f() {}", functionDecl(hasBody(compoundStmt()))));
1390 EXPECT_TRUE(notMatches("void f();", functionDecl(hasBody(compoundStmt()))));
1392 functionDecl(hasBody(compoundStmt()))));
1400 compoundStmt(hasAnySubstatement(forStmt()))));
1406 compoundStmt(hasAnySubstatement(forStmt()))));
1411 compoundStmt(hasAnySubstatement(forStmt()))));
1416 compoundStmt(hasAnySubstatement(forStmt()))));
1959 compoundStmt(forEachDescendant(ifStmt().bind("if")),
2027 has(compoundStmt(hasAnySubstatement(ifStmt())))),
2188 compoundStmt(hasParent(ifStmt()))));
2191 compoundStmt(hasParent(ifStmt()))));
2194 compoundStmt(hasParent(ifStmt()))));
2261 hasParent(compoundStmt(hasParent(functionDecl(
2268 hasParent(compoundStmt(hasParent(functionDecl(hasParent(
2274 hasParent(compoundStmt(
2282 compoundStmt(hasParent(recordDecl()))));
tools/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp 51 return expr(Matcher, hasAncestor(compoundStmt().bind("stmt"))).bind("expr");
tools/clang/unittests/Tooling/RangeSelectorTest.cpp 97 compoundStmt(
470 TestMatch Match = matchCode(Code, compoundStmt().bind(ID));
479 TestMatch Match = matchCode(Code, compoundStmt().bind(ID));
tools/clang/unittests/Tooling/SourceCodeBuildersTest.cpp 36 hasDescendant(compoundStmt(hasAnySubstatement(Matcher))));
tools/clang/unittests/Tooling/StencilTest.cpp 40 hasDescendant(compoundStmt(hasAnySubstatement(Matcher))));