Home
last modified time | relevance | path

Searched refs:returnStmt (Results 1 – 25 of 35) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DUseAnyOfAllOfCheck.cpp45 return returnStmt(hasReturnValue(cxxBoolLiteral(equals(V)))); in registerMatchers()
49 returnStmt(hasReturnValue(unless(cxxBoolLiteral(equals(true))))); in registerMatchers()
51 returnStmt(hasReturnValue(unless(cxxBoolLiteral(equals(false))))); in registerMatchers()
H A DRedundantControlFlowCheck.cpp37 returnStmt(unless(has(expr()))))) in registerMatchers()
H A DNonConstParameterCheck.cpp32 binaryOperator(), callExpr(), returnStmt(), in registerMatchers()
H A DContainerSizeEmptyCheck.cpp73 returnStmt(forFunction(returns(booleanType()))), in AST_MATCHER()
/llvm-project-15.0.7/clang/unittests/AST/
H A DStmtPrinterTest.cpp277 ObjCSource, returnStmt().bind("id"), "return ivar;\n", in TEST()
281 ASSERT_TRUE(PrintedStmtObjCMatches(ObjCSource, returnStmt().bind("id"), in TEST()
312 returnStmt().bind("id"), in TEST()
315 PrintedStmtCXXMatches(StdVer::CXX14, Code, returnStmt().bind("id"), in TEST()
/llvm-project-15.0.7/flang/lib/Semantics/
H A Dcheck-return.cpp26 void ReturnStmtChecker::Leave(const parser::ReturnStmt &returnStmt) { in Leave() argument
34 if (returnStmt.v && in Leave()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnconventionalAssignOperatorCheck.cpp55 const auto IsBadReturnStatement = returnStmt(unless(has(ignoringParenImpCasts( in registerMatchers()
67 Finder->addMatcher(returnStmt(IsBadReturnStatement, forFunction(IsGoodAssign)) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DDanglingHandleCheck.cpp147 returnStmt( in registerMatchersForReturn()
172 returnStmt(has(exprWithCleanups(has(ignoringParenImpCasts(handleFrom( in registerMatchersForReturn()
H A DThrowKeywordMissingCheck.cpp29 stmt(anyOf(cxxThrowExpr(), callExpr(), returnStmt()))), in registerMatchers()
H A DMisplacedWideningCastCheck.cpp46 Finder->addMatcher(returnStmt(hasReturnValue(Cast)), this); in registerMatchers()
H A DInfiniteLoopCheck.cpp26 mapAnyOf(breakStmt, returnStmt, gotoStmt, cxxThrowExpr).with(Internal), in loopEndingStmt()
H A DStringviewNullptrCheck.cpp260 returnStmt(hasReturnValue( in StringviewNullptrCheckImpl()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DTimeSubtractionCheck.cpp75 hasParent(returnStmt())))))))) in isReturn()
77 expr(hasParent(returnStmt())).bind("e"))), in isReturn()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/linuxkernel/
H A DMustCheckErrsCheck.cpp28 auto ReturnToCheck = returnStmt(hasReturnValue(callExpr(callee(ErrFn)))); in registerMatchers()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersTraversalTest.cpp596 Code, cxxConversionDecl(hasBody(compoundStmt(has(returnStmt( in TEST()
3765 returnStmt(forFunction(functionDecl(hasName("func10"))), in TEST()
3773 hasParent(returnStmt(forFunction( in TEST()
3781 returnStmt(forFunction(functionDecl(hasName("func11"))), in TEST()
3797 returnStmt(forFunction(functionDecl(hasName("func12"))), in TEST()
5666 returnStmt(forFunction(hasName("operator=")), in TEST()
5671 returnStmt(forFunction(hasName("operator=")), in TEST()
5676 returnStmt(forFunction(hasName("operator()")), in TEST()
5701 returnStmt(forCallable(functionDecl(hasName("operator="))), in TEST()
5706 returnStmt(forCallable(functionDecl(hasName("operator="))), in TEST()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DNoAutomaticMoveCheck.cpp48 returnStmt(hasReturnValue( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DReturnBracedInitListCheck.cpp30 returnStmt(hasReturnValue(ConstructExpr), in registerMatchers()
H A DUseEqualsDefaultCheck.cpp141 returnStmt(has(ignoringParenImpCasts(unaryOperator( in isCopyAssignmentAndCanBeDefaulted()
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-tidy/
H A DTransformerClangTidyCheckTest.cpp79 makeRule(returnStmt(), noopEdit(node(RootID)), cat("message")), in TEST()
97 : TransformerClangTidyCheck(makeRule(returnStmt(), in TEST()
/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DTestingSupport.cpp61 findAll(stmt(unless(anyOf(hasParent(expr()), hasParent(returnStmt())))) in buildStatementToAnnotationMapping()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DTransformerTest.cpp484 testRule(makeRule(returnStmt().bind("return"), noEdits()), Input, Input); in TEST_F()
491 testRule(makeRule(returnStmt().bind("return"), noopEdit(node("return"))), in TEST_F()
499 testRule(makeRule(returnStmt().bind("return"), in TEST_F()
508 testRule(makeRule(returnStmt().bind("return"), in TEST_F()
518 testRule(makeRule(functionDecl(hasDescendant(returnStmt().bind("return"))) in TEST_F()
735 makeRule(returnStmt().bind(Ret), in TEST_F()
H A DStencilTest.cpp478 traverse(TK_AsIs, returnStmt(hasReturnValue(ignoringImplicit(memberExpr( in TEST_F()
499 matchStmt(Snippet, returnStmt(hasReturnValue(ignoringImplicit(memberExpr( in TEST_F()
H A DRangeSelectorTest.cpp333 TestMatch Match = matchCode(Code, returnStmt().bind("id")); in TEST()
748 TestMatch Match = matchCode(Code, returnStmt().bind(Ret)); in TEST()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/CodeGen/
H A DMLIRGen.cpp595 auto *returnStmt = dyn_cast<ast::ReturnStmt>(cstBody->getChildren().back()); in genConstraintOrRewriteCall() local
596 if (!returnStmt) in genConstraintOrRewriteCall()
600 return genExpr(returnStmt->getResultExpr()); in genConstraintOrRewriteCall()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DOwningMemoryCheck.cpp152 functionDecl(hasDescendant(returnStmt(hasReturnValue(ConsideredOwner)) in registerMatchers()

12