Home
last modified time | relevance | path

Searched refs:ReturnStmt (Results 1 – 25 of 129) sorted by relevance

123456

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DMIGChecker.cpp38 class MIGChecker : public Checker<check::PostCall, check::PreStmt<ReturnStmt>,
91 void checkReturnAux(const ReturnStmt *RS, CheckerContext &C) const;
102 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const { in checkPreStmt()
105 void checkEndFunction(const ReturnStmt *RS, CheckerContext &C) const { in checkEndFunction()
248 void MIGChecker::checkReturnAux(const ReturnStmt *RS, CheckerContext &C) const { in checkReturnAux()
H A DReturnPointerRangeChecker.cpp28 public Checker< check::PreStmt<ReturnStmt> > {
32 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const;
36 void ReturnPointerRangeChecker::checkPreStmt(const ReturnStmt *RS, in checkPreStmt()
H A DReturnUndefChecker.cpp26 class ReturnUndefChecker : public Checker< check::PreStmt<ReturnStmt> > {
34 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const;
38 void ReturnUndefChecker::checkPreStmt(const ReturnStmt *RS, in checkPreStmt()
H A DCheckerDocumentation.cpp36 class CheckerDocumentation : public Checker< check::PreStmt<ReturnStmt>,
72 void checkPreStmt(const ReturnStmt *DS, CheckerContext &C) const {} in checkPreStmt()
194 void checkEndFunction(const ReturnStmt *RS, CheckerContext &Ctx) const {} in checkEndFunction()
H A DVforkChecker.cpp45 check::Bind, check::PreStmt<ReturnStmt>> {
65 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const;
212 void VforkChecker::checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const { in checkPreStmt()
H A DTraversalChecker.cpp32 void checkEndFunction(const ReturnStmt *RS, CheckerContext &C) const;
58 void TraversalDumper::checkEndFunction(const ReturnStmt *RS, in checkEndFunction()
H A DStackAddrEscapeChecker.cpp30 : public Checker<check::PreCall, check::PreStmt<ReturnStmt>,
49 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const;
50 void checkEndFunction(const ReturnStmt *RS, CheckerContext &Ctx) const;
252 void StackAddrEscapeChecker::checkPreStmt(const ReturnStmt *RS, in checkPreStmt()
294 void StackAddrEscapeChecker::checkEndFunction(const ReturnStmt *RS, in checkEndFunction()
H A DReturnValueChecker.cpp33 void checkEndFunction(const ReturnStmt *RS, CheckerContext &C) const;
118 void ReturnValueChecker::checkEndFunction(const ReturnStmt *RS, in checkEndFunction()
H A DIdenticalExprChecker.cpp369 const ReturnStmt *ReturnStmt1 = cast<ReturnStmt>(Stmt1); in isIdenticalStmt()
370 const ReturnStmt *ReturnStmt2 = cast<ReturnStmt>(Stmt2); in isIdenticalStmt()
H A DObjCSelfInitChecker.cpp59 check::PreStmt<ReturnStmt>,
73 void checkPreStmt(const ReturnStmt *S, CheckerContext &C) const;
210 void ObjCSelfInitChecker::checkPreStmt(const ReturnStmt *S, in checkPreStmt()
/llvm-project-15.0.7/flang/lib/Semantics/
H A Dcheck-return.h15 struct ReturnStmt;
22 void Leave(const parser::ReturnStmt &);
/llvm-project-15.0.7/clang/include/clang/Analysis/
H A DConstructionContext.h96 ConstructionContextItem(const ReturnStmt *RS) in ConstructionContextItem()
583 const ReturnStmt *RS;
587 const ReturnStmt *RS) in ReturnedValueConstructionContext()
594 const ReturnStmt *getReturnStmt() const { return RS; } in getReturnStmt()
611 explicit SimpleReturnedValueConstructionContext(const ReturnStmt *RS) in SimpleReturnedValueConstructionContext()
636 const ReturnStmt *RS, const CXXBindTemporaryExpr *BTE) in CXX17ElidedCopyReturnedValueConstructionContext()
H A DProgramPoint.h336 explicit FunctionExitPoint(const ReturnStmt *S,
345 const ReturnStmt *getStmt() const { in getStmt()
346 return reinterpret_cast<const ReturnStmt *>(getData1()); in getStmt()
670 CallExitBegin(const StackFrameContext *L, const ReturnStmt *RS) in CallExitBegin()
673 const ReturnStmt *getReturnStmt() const { in getReturnStmt()
674 return static_cast<const ReturnStmt *>(getData1()); in getReturnStmt()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountChecker.h326 ExplodedNode* checkReturnWithRetEffect(const ReturnStmt *S, CheckerContext &C,
332 void checkEndFunction(const ReturnStmt *RS, CheckerContext &C) const;
356 const ReturnStmt *S=nullptr) const;
373 ExplodedNode * processReturn(const ReturnStmt *S, CheckerContext &C) const;
/llvm-project-15.0.7/mlir/test/mlir-pdll/Parser/
H A Drewrite.pdll22 // CHECK: `-ReturnStmt {{.*}}
40 // CHECK: `-ReturnStmt {{.*}}
H A Dconstraint.pdll22 // CHECK: `-ReturnStmt {{.*}}
39 // CHECK: `-ReturnStmt {{.*}}
/llvm-project-15.0.7/clang/test/Index/
H A Dusrs.m184 // CHECK-source: usrs.m:3:45: ReturnStmt= Extent=[3:45 - 3:57]
223 // CHECK-source: usrs.m:38:3: ReturnStmt= Extent=[38:3 - 38:11]
231 // CHECK-source: usrs.m:42:3: ReturnStmt= Extent=[42:3 - 42:11]
239 // CHECK-source: usrs.m:49:32: ReturnStmt= Extent=[49:32 - 49:40]
260 // CHECK-source: usrs.m:64:16: ReturnStmt= Extent=[64:16 - 64:24]
266 // CHECK-source: usrs.m:65:16: ReturnStmt= Extent=[65:16 - 65:24]
272 // CHECK-source: usrs.m:66:16: ReturnStmt= Extent=[66:16 - 66:24]
280 // CHECK-source: usrs.m:69:16: ReturnStmt= Extent=[69:16 - 69:24]
302 // CHECK-source: usrs.m:76:3: ReturnStmt= Extent=[76:3 - 76:11]
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/
H A DNodes.cpp56 const ReplaceStmt, const ReturnStmt, const RewriteStmt, in visit()
89 void visitImpl(const ReturnStmt *stmt) { visit(stmt->getResultExpr()); } in visitImpl()
244 ReturnStmt *ReturnStmt::create(Context &ctx, SMRange loc, Expr *resultExpr) { in create()
245 return new (ctx.getAllocator().Allocate<ReturnStmt>()) in create()
246 ReturnStmt(loc, resultExpr); in create()
/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DTestingSupportTest.cpp57 TEST(BuildStatementToAnnotationMappingTest, ReturnStmt) { in TEST() argument
67 EXPECT_TRUE(isa<ReturnStmt>(Annotations.begin()->first)); in TEST()
/llvm-project-15.0.7/clang/lib/AST/
H A DStmt.cpp1187 ReturnStmt::ReturnStmt(SourceLocation RL, Expr *E, const VarDecl *NRVOCandidate) in ReturnStmt() function in ReturnStmt
1196 ReturnStmt::ReturnStmt(EmptyShell Empty, bool HasNRVOCandidate) in ReturnStmt() function in ReturnStmt
1201 ReturnStmt *ReturnStmt::Create(const ASTContext &Ctx, SourceLocation RL, in Create()
1205 alignof(ReturnStmt)); in Create()
1206 return new (Mem) ReturnStmt(RL, E, NRVOCandidate); in Create()
1209 ReturnStmt *ReturnStmt::CreateEmpty(const ASTContext &Ctx, in CreateEmpty()
1212 alignof(ReturnStmt)); in CreateEmpty()
1213 return new (Mem) ReturnStmt(EmptyShell(), HasNRVOCandidate); in CreateEmpty()
H A DStmtCXX.cpp121 SubStmts[CoroutineBodyStmt::ReturnStmt] = Args.ReturnStmt; in CoroutineBodyStmt()
/llvm-project-15.0.7/clang/test/Import/objc-autoreleasepool/
H A Dtest.m6 // CHECK-NEXT: ReturnStmt
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmtCXX.h330 ReturnStmt, ///< Return statement for the thunk function. enumerator
356 Stmt *ReturnStmt = nullptr; member
412 auto *RS = cast<clang::ReturnStmt>(getReturnStmt()); in getReturnValue()
415 Stmt *getReturnStmt() const { return getStoredStmts()[SubStmt::ReturnStmt]; } in getReturnStmt()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DCoreEngine.cpp273 const ReturnStmt *RS = nullptr; in HandleBlockEdge()
277 RS = dyn_cast<ReturnStmt>(LastStmt->getStmt()); in HandleBlockEdge()
280 RS = dyn_cast<ReturnStmt>(AutoDtor->getTriggerStmt()); in HandleBlockEdge()
594 const ReturnStmt *RS) { in generateCallExitBeginNode()
618 void CoreEngine::enqueueEndOfFunction(ExplodedNodeSet &Set, const ReturnStmt *RS) { in enqueueEndOfFunction()
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Dblock-cleanup.mm5 // CHECK-NEXT: -ReturnStmt

123456