|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 1211 extern const internal::VariadicAllOfMatcher<Stmt> stmt;
References
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 2508 return stmt(unaryExprOrTypeTraitExpr(
2517 return stmt(unaryExprOrTypeTraitExpr(
5295 return stmt(
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp 484 REGISTER_MATCHER(stmt);
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp 287 match(findAll(stmt(anyOf(AsAssignmentLhs, AsIncDecOperand, AsNonConstThis,
367 stmt(forEachDescendant(
tools/clang/lib/StaticAnalyzer/Checkers/GCDAntipatternChecker.cpp 109 auto ArgCallsSignalM = hasAnyArgument(stmt(hasDescendant(callExpr(
119 stmt(anyOf(
148 stmt(callExpr(allOf(callsName("dispatch_group_enter"),
155 auto ArgCallsSignalM = hasAnyArgument(stmt(hasDescendant(callExpr(
165 stmt(anyOf(
tools/clang/lib/StaticAnalyzer/Checkers/NumberObjectConversionChecker.cpp 327 auto FinalM = stmt(anyOf(ConversionThroughAssignmentM,
341 F.addMatcher(stmt(forEachDescendant(FinalM)), &CB);
tools/clang/lib/StaticAnalyzer/Checkers/OSObjectCStyleCast.cpp 78 auto Matches = match(stmt(forEachDescendant(CastM)), *D->getBody(), AM.getASTContext());
tools/clang/lib/StaticAnalyzer/Checkers/ObjCAutoreleaseWriteChecker.cpp 173 auto CapturedInParamM = stmt(anyOf(
181 stmt(anyOf(WritesIntoM, CapturedInParamM))
184 auto BlockPassedToMarkedFuncM = stmt(anyOf(
tools/clang/lib/StaticAnalyzer/Checkers/PointerIterationChecker.cpp 74 auto PointerIterM = stmt(cxxForRangeStmt(
tools/clang/lib/StaticAnalyzer/Checkers/PointerSortingChecker.cpp 89 auto PointerSortM = stmt(callExpr(allOf(SortFuncM, IteratesPointerEltsM))
tools/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp 556 stmt(anyOf(ifStmt(), switchStmt(), conditionalOperator(), AssertLikeM,
565 auto Accesses = match(stmt(hasDescendant(FieldAccessM)), *MethodBody, AC);
571 auto Guards = match(stmt(hasDescendant(GuardM)), *MethodBody, AC);
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp 446 StatementMatcher ParentM = stmt(hasDescendant(WriteIntoIvarM));
tools/clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp 128 return hasDescendant(stmt(
188 match(stmt(anyOf(callByRef(equalsNode(VD)), getAddrTo(equalsNode(VD)),
tools/clang/lib/StaticAnalyzer/Core/LoopWidening.cpp 70 auto Matches = match(findAll(stmt(hasDescendant(varDecl(hasType(referenceType())).bind(MatchRef)))),
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp 1092 StatementMatcher RefToStatic = stmt(hasDescendant(declRefExpr(
tools/clang/tools/extra/clang-tidy/abseil/RedundantStrcatCallsCheck.cpp 71 match(stmt(anyOf(
tools/clang/tools/extra/clang-tidy/bugprone/AssertSideEffectCheck.cpp 90 stmt(
tools/clang/tools/extra/clang-tidy/bugprone/BranchCloneCheck.cpp 62 ifStmt(stmt().bind("if"),
63 hasParent(stmt(unless(ifStmt(hasElse(equalsBoundNode("if")))))),
64 hasElse(stmt().bind("else"))),
tools/clang/tools/extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp 22 return stmt(anyOf(breakStmt(Internal), returnStmt(Internal),
162 Finder->addMatcher(stmt(anyOf(whileStmt(LoopCondition), doStmt(LoopCondition),
tools/clang/tools/extra/clang-tidy/bugprone/MultipleStatementMacroCheck.cpp 61 stmt(anyOf(ifStmt(hasThen(Inner)), ifStmt(hasElse(Inner)).bind("else"),
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousSemicolonCheck.cpp 22 stmt(anyOf(ifStmt(hasThen(nullStmt().bind("semi")),
23 unless(hasElse(stmt()))),
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousStringCompareCheck.cpp 116 stmt(anyOf(ifStmt(hasCondition(StringCompareCallExpr)),
tools/clang/tools/extra/clang-tidy/bugprone/TerminatingContinueCheck.cpp 29 continueStmt(hasAncestor(stmt(anyOf(forStmt(), whileStmt(),
tools/clang/tools/extra/clang-tidy/bugprone/ThrowKeywordMissingCheck.cpp 31 unless(anyOf(hasAncestor(stmt(
tools/clang/tools/extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp 80 stmt(anyOf(UnusedInCompoundStmt, UnusedInIfStmt, UnusedInWhileStmt,
tools/clang/tools/extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp 288 stmt(anyOf(
392 stmt(forEach(expr(ignoringParenImpCasts(CallMoveMatcher))),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/AvoidGotoCheck.cpp 35 auto Loop = stmt(anyOf(forStmt(), cxxForRangeStmt(), whileStmt(), doStmt()));
37 stmt(anyOf(forStmt(hasAncestor(Loop)), cxxForRangeStmt(hasAncestor(Loop)),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsArrayToPointerDecayCheck.cpp 29 return stmt(hasAncestor(cxxForRangeStmt(
tools/clang/tools/extra/clang-tidy/linuxkernel/MustCheckErrsCheck.cpp 23 auto NonCheckingStmts = stmt(anyOf(compoundStmt(), labelStmt()));
tools/clang/tools/extra/clang-tidy/llvm/PreferIsaOrDynCastInConditionalsCheck.cpp 58 stmt(anyOf(ifStmt(Any), whileStmt(Any), doStmt(Condition),
tools/clang/tools/extra/clang-tidy/misc/UnusedParametersCheck.cpp 33 functionDecl(isDefinition(), hasBody(stmt()), hasAnyParameter(decl()))
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp 176 compoundStmt(has(ignoringParenImpCasts(stmt(anyOf(
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDeleteCheck.cpp 42 unless(anyOf(hasBody(stmt()), isDefaulted(), isDeleted(),
47 anyOf(PrivateSpecialFn, hasBody(stmt()), isPure(),
tools/clang/tools/extra/clang-tidy/openmp/ExceptionEscapeCheck.cpp 56 hasStructuredBlock(stmt().bind("structured-block")))
tools/clang/tools/extra/clang-tidy/performance/InefficientStringConcatenationCheck.cpp 54 hasArgument(1, stmt(hasDescendant(declRefExpr(
64 hasAncestor(stmt(anyOf(cxxForRangeStmt(),
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp 47 unless(hasAncestor(stmt(anyOf(forStmt(), cxxForRangeStmt(),
88 functionDecl(hasBody(stmt()), isDefinition(), unless(isImplicit()),
tools/clang/tools/extra/clang-tidy/readability/ElseAfterReturnCheck.cpp 22 stmt(anyOf(returnStmt().bind("return"), continueStmt().bind("continue"),
35 hasThen(stmt(anyOf(InterruptsControlFlow,
37 hasElse(stmt().bind("else")))
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp 291 hasParent(stmt(anyOf(ifStmt(), whileStmt()), has(declStmt())))),
296 anyOf(hasParent(stmt().bind("parentStmt")), anything()),
tools/clang/tools/extra/clang-tidy/readability/MisleadingIndentationCheck.cpp 109 Finder->addMatcher(ifStmt(hasElse(stmt())).bind("if"), this);
111 compoundStmt(has(stmt(anyOf(ifStmt(), forStmt(), whileStmt()))))
tools/clang/tools/extra/clang-tidy/readability/NonConstParameterCheck.cpp 31 Finder->addMatcher(stmt(anyOf(unaryOperator(anyOf(hasOperatorName("++"),
tools/clang/tools/extra/clang-tidy/readability/RedundantControlFlowCheck.cpp 43 stmt(anyOf(forStmt(), cxxForRangeStmt(), whileStmt(), doStmt()),
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp 492 ifStmt(hasThen(returnsBool(Value)), unless(hasElse(stmt())))),
tools/clang/tools/extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp 200 stmt(eachOf(integerLiteral().bind(IntegerLiteralCheck::Name),
tools/clang/tools/extra/clang-tidy/utils/ASTUtils.cpp 23 "function", match(stmt(hasAncestor(functionDecl().bind("function"))),
tools/clang/tools/extra/clang-tidy/utils/UsingInserter.cpp 52 !match(stmt(hasAncestor(decl(has(usingDecl(hasAnyUsingShadowDecl(
tools/clang/tools/extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp 35 ifStmt(hasCondition(expr().bind(C)), hasThen(stmt().bind(T)),
36 hasElse(stmt().bind(E))),
tools/clang/unittests/AST/ASTTypeTraitsTest.cpp 135 EXPECT_TRUE(Verifier.match("void f() {}", stmt()));
160 EXPECT_TRUE(Verifier.match("void f() {}", stmt()));
172 EXPECT_TRUE(Verifier.match("void f() {}", stmt()));
tools/clang/unittests/AST/OMPStructuredBlockTest.cpp 34 return stmt(isOMPStructuredBlock(),
35 unless(hasDescendant(stmt(isOMPStructuredBlock()))))
40 return stmt(ompExecutableDirective(isStandaloneDirective())).bind("id");
359 return stmt(
tools/clang/unittests/AST/StmtPrinterTest.cpp 38 has(compoundStmt(has(stmt().bind("id")))));
tools/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp 315 StatementMatcher MixedTypes = stmt(anyOf(ifStmt(), binaryOperator()));
2289 stmt(allOf(ifStmt().bind("if"),
2290 hasParent(stmt(has(stmt(equalsBoundNode("if")))))))));
2290 hasParent(stmt(has(stmt(equalsBoundNode("if")))))))));
2294 stmt(allOf(ifStmt().bind("if"), has(stmt(equalsBoundNode("if")))))));
2294 stmt(allOf(ifStmt().bind("if"), has(stmt(equalsBoundNode("if")))))));
2366 unless(hasAncestor(stmt(hasDescendant(cxxMemberCallExpr(
2382 unless(hasAncestor(stmt(hasDescendant(cxxMemberCallExpr(
2535 matchesWithOpenMP(Source0, stmt(nullStmt(), isOMPStructuredBlock())));
2543 notMatchesWithOpenMP(Source1, stmt(nullStmt(), isOMPStructuredBlock())));
2545 matchesWithOpenMP(Source1, stmt(compoundStmt(), isOMPStructuredBlock())));
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp 1054 EXPECT_TRUE(notMatches("class X {};", stmt()));
1058 EXPECT_TRUE(matches("void x() {}", stmt()));
1551 "", match(stmt(hasParent(
1552 stmt(has(stmt(equalsNode(TypedNode)))).bind(""))),
1552 stmt(has(stmt(equalsNode(TypedNode)))).bind(""))),
1769 auto Matcher = stmt(ompExecutableDirective());
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp 69 stmt(hasDescendant(builtinType()))));
72 stmt(hasDescendant(loc(builtinType())))));
74 stmt(hasDescendant(qualType(builtinType())))));
77 stmt(hasDescendant(isInteger()))));
2053 ifStmt(stmt().bind("x"), hasAncestor(recordDecl(hasName("::A")))),
2303 stmt().bind("node"), std::make_unique<HasDuplicateParents>()));
2500 "if", stmt(hasDescendant(forStmt().bind("for"))), "for")));
2504 "if", stmt(hasDescendant(declStmt().bind("decl"))), "decl")));
tools/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp 30 ast_matchers::internal::Matcher<Stmt> M = stmt(stmt(), stmt());
30 ast_matchers::internal::Matcher<Stmt> M = stmt(stmt(), stmt());
30 ast_matchers::internal::Matcher<Stmt> M = stmt(stmt(), stmt());
tools/clang/unittests/ASTMatchers/Dynamic/VariantValueTest.cpp 44 VariantValue Value = VariantMatcher::SingleMatcher(stmt());
tools/clang/unittests/Tooling/StencilTest.cpp 90 stmt(hasDescendant(
129 hasThen(stmt().bind(Then)), hasElse(stmt().bind(Else))));
129 hasThen(stmt().bind(Then)), hasElse(stmt().bind(Else))));
148 hasThen(stmt().bind(Then)), hasElse(stmt().bind(Else))));
148 hasThen(stmt().bind(Then)), hasElse(stmt().bind(Else))));
164 auto StmtMatch = matchStmt(Snippet, ifStmt(hasCondition(stmt().bind("a1")),
165 hasThen(stmt().bind("a2"))));
tools/clang/unittests/Tooling/TransformerTest.cpp 453 hasThen(stmt().bind(T)), hasElse(stmt().bind(E))),
453 hasThen(stmt().bind(T)), hasElse(stmt().bind(E))),