Home
last modified time | relevance | path

Searched refs:RetExpr (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DNullabilityChecker.cpp652 auto RetExpr = S->getRetValue(); in checkPreStmt() local
653 if (!RetExpr) in checkPreStmt()
656 if (!isValidPointerType(RetExpr->getType())) in checkPreStmt()
707 getNullabilityAnnotation(lookThroughImplicitCasts(RetExpr)->getType()); in checkPreStmt()
720 OS << (RetExpr->getType()->isObjCObjectPointerType() ? "nil" : "Null"); in checkPreStmt()
725 RetExpr); in checkPreStmt()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h3133 Stmt *RetExpr;
3156 Expr *getRetValue() { return reinterpret_cast<Expr *>(RetExpr); }
3157 const Expr *getRetValue() const { return reinterpret_cast<Expr *>(RetExpr); }
3158 void setRetValue(Expr *E) { RetExpr = reinterpret_cast<Stmt *>(E); }
3183 return RetExpr ? RetExpr->getEndLoc() : getReturnLoc();
3192 if (RetExpr)
3193 return child_range(&RetExpr, &RetExpr + 1);
3198 if (RetExpr)
3199 return const_child_range(&RetExpr, &RetExpr + 1);
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DLifetimeSafety.cpp434 if (const Expr *RetExpr = RS->getRetValue()) { in VisitReturnStmt() local
435 if (hasOrigin(RetExpr->getType())) { in VisitReturnStmt()
436 OriginID OID = FactMgr.getOriginMgr().getOrCreate(*RetExpr); in VisitReturnStmt()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp3737 Expr *RetExpr, const AutoType *AT) { in DeduceFunctionTypeFromReturnExpr() argument
3744 if (isa_and_nonnull<InitListExpr>(RetExpr)) { in DeduceFunctionTypeFromReturnExpr()
3747 Diag(RetExpr->getExprLoc(), in DeduceFunctionTypeFromReturnExpr()
3750 << RetExpr->getSourceRange(); in DeduceFunctionTypeFromReturnExpr()
3767 if (!RetExpr) { in DeduceFunctionTypeFromReturnExpr()
3777 RetExpr = &VoidVal; in DeduceFunctionTypeFromReturnExpr()
3784 auto RetExprLoc = RetExpr->getExprLoc(); in DeduceFunctionTypeFromReturnExpr()
3787 if (RetExpr->getType() == Context.OverloadTy) { in DeduceFunctionTypeFromReturnExpr()
3788 auto FindResult = OverloadExpr::find(RetExpr); in DeduceFunctionTypeFromReturnExpr()
3794 OrigResultType, RetExpr, Deduced, Info, /*DependentDeduction=*/false, in DeduceFunctionTypeFromReturnExpr()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmt.cpp1573 SaveRetExprRAII(const Expr *RetExpr, CodeGenFunction &CGF) in SaveRetExprRAII()
1574 : OldRetExpr(CGF.RetExpr), CGF(CGF) { in SaveRetExprRAII()
1575 CGF.RetExpr = RetExpr; in SaveRetExprRAII()
1577 ~SaveRetExprRAII() { CGF.RetExpr = OldRetExpr; } in ~SaveRetExprRAII()
H A DCGBlocks.cpp1096 auto *EWC = llvm::dyn_cast_or_null<ExprWithCleanups>(RetExpr); in EmitBlockLiteral()
H A DCodeGenFunction.h408 const Expr *RetExpr = nullptr;
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DNeonEmitter.cpp1428 std::string RetExpr; in emitBodyAsBuiltinCall() local
1430 RetExpr = RetVar.getName() + " = "; in emitBodyAsBuiltinCall()
1432 OS << " " << RetExpr << S; in emitBodyAsBuiltinCall()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp1235 : Stmt(ReturnStmtClass), RetExpr(E) { in ReturnStmt()
H A DExprConstant.cpp5614 const Expr *RetExpr = cast<ReturnStmt>(S)->getRetValue(); in EvaluateStmt() local
5616 if (RetExpr && RetExpr->isValueDependent()) { in EvaluateStmt()
5617 EvaluateDependentExpr(RetExpr, Info); in EvaluateStmt()
5621 if (RetExpr && in EvaluateStmt()
5623 ? EvaluateInPlace(Result.Value, Info, *Result.Slot, RetExpr) in EvaluateStmt()
5624 : Evaluate(Result.Value, Info, RetExpr))) in EvaluateStmt()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h11093 SourceLocation ReturnLoc, Expr *RetExpr,