reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 1956 extern const internal::VariadicDynCastAllOfMatcher<Stmt, ReturnStmt> returnStmt;

References

tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  476   REGISTER_MATCHER(returnStmt);
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp
  283   const auto AsNonConstRefReturn = returnStmt(hasReturnValue(
tools/clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp
  129       anyOf(gotoStmt(), switchStmt(), returnStmt(),
tools/clang/tools/extra/clang-tidy/abseil/TimeSubtractionCheck.cpp
   74                                     hasParent(returnStmt()))))))))
   76                        expr(hasParent(returnStmt())).bind("e"))),
tools/clang/tools/extra/clang-tidy/bugprone/DanglingHandleCheck.cpp
  143       returnStmt(
  166       returnStmt(has(exprWithCleanups(has(ignoringParenImpCasts(handleFrom(
tools/clang/tools/extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
   22   return stmt(anyOf(breakStmt(Internal), returnStmt(Internal),
tools/clang/tools/extra/clang-tidy/bugprone/MisplacedWideningCastCheck.cpp
   47   Finder->addMatcher(returnStmt(hasReturnValue(Cast)), this);
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
  604       hasBody(has(returnStmt(hasReturnValue(AnyOfCallOrDREWithoutInc))))))));
tools/clang/tools/extra/clang-tidy/bugprone/ThrowKeywordMissingCheck.cpp
   32                             anyOf(cxxThrowExpr(), callExpr(), returnStmt()))),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.cpp
  160       functionDecl(hasDescendant(returnStmt(hasReturnValue(ConsideredOwner))
tools/clang/tools/extra/clang-tidy/linuxkernel/MustCheckErrsCheck.cpp
   28   auto ReturnToCheck = returnStmt(hasReturnValue(callExpr(callee(ErrFn))));
tools/clang/tools/extra/clang-tidy/misc/UnconventionalAssignOperatorCheck.cpp
   59   const auto IsBadReturnStatement = returnStmt(unless(has(ignoringParenImpCasts(
   66   Finder->addMatcher(returnStmt(IsBadReturnStatement, forFunction(IsGoodAssign))
tools/clang/tools/extra/clang-tidy/modernize/ReturnBracedInitListCheck.cpp
   40                    hasDescendant(returnStmt(hasReturnValue(
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp
  132       match(returnStmt(has(ignoringParenImpCasts(unaryOperator(
tools/clang/tools/extra/clang-tidy/readability/ElseAfterReturnCheck.cpp
   22       stmt(anyOf(returnStmt().bind("return"), continueStmt().bind("continue"),
tools/clang/tools/extra/clang-tidy/readability/NonConstParameterCheck.cpp
   33                                 binaryOperator(), callExpr(), returnStmt(),
tools/clang/tools/extra/clang-tidy/readability/RedundantControlFlowCheck.cpp
   37           has(compoundStmt(hasAnySubstatement(returnStmt(unless(has(expr())))))
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
   69       returnStmt(has(cxxBoolLiteral(equals(Value)).bind(Id)))
  493           hasAnySubstatement(returnStmt(has(ignoringParenImpCasts(
tools/clang/unittests/AST/ASTImporterTest.cpp
  846           returnStmt(has(implicitCastExpr(has(declRefExpr())))))));
tools/clang/unittests/AST/StmtPrinterTest.cpp
  225   ASSERT_TRUE(PrintedStmtObjCMatches(ObjCSource, returnStmt().bind("id"),
  231   ASSERT_TRUE(PrintedStmtObjCMatches(ObjCSource, returnStmt().bind("id"),
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
  339   EXPECT_TRUE(matches("void f() { return; }", returnStmt()));
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
 2519   StatementMatcher RetVal = returnStmt(hasReturnValue(binaryOperator()));
 2544       returnStmt(forFunction(hasName("operator=")),
 2549       returnStmt(forFunction(hasName("operator=")),
 2554       returnStmt(forFunction(hasName("operator()")),
 2556   EXPECT_TRUE(matches(CppString2, returnStmt(forFunction(hasName("F2")))));
 2557   EXPECT_TRUE(notMatches(CppString2, returnStmt(forFunction(hasName("F")))));
tools/clang/unittests/Tooling/RangeSelectorTest.cpp
  194   TestMatch Match = matchCode(Code, returnStmt().bind(ID));
  573   TestMatch Match = matchCode(Code, returnStmt().bind(Ret));
tools/clang/unittests/Tooling/StencilTest.cpp
  314       matchStmt(Snippet, returnStmt(hasReturnValue(ignoringImplicit(memberExpr(
  335       matchStmt(Snippet, returnStmt(hasReturnValue(ignoringImplicit(memberExpr(
tools/clang/unittests/Tooling/TransformerTest.cpp
  391   testRule(makeRule(returnStmt().bind(Ret),