Home
last modified time | relevance | path

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

/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DNullabilityChecker.cpp571 auto RetExpr = S->getRetValue(); in checkPreStmt() local
572 if (!RetExpr) in checkPreStmt()
575 if (!RetExpr->getType()->isAnyPointerType()) in checkPreStmt()
618 getNullabilityAnnotation(lookThroughImplicitCasts(RetExpr)->getType()); in checkPreStmt()
632 OS << (RetExpr->getType()->isObjCObjectPointerType() ? "nil" : "Null"); in checkPreStmt()
637 RetExpr); in checkPreStmt()
/external/clang/lib/StaticAnalyzer/Checkers/
DNullabilityChecker.cpp552 auto RetExpr = S->getRetValue(); in checkPreStmt() local
553 if (!RetExpr) in checkPreStmt()
556 if (!RetExpr->getType()->isAnyPointerType()) in checkPreStmt()
600 getNullabilityAnnotation(lookThroughImplicitCasts(RetExpr)->getType()); in checkPreStmt()
621 RetExpr); in checkPreStmt()
/external/llvm-project/clang/include/clang/AST/
DStmt.h2733 Stmt *RetExpr; variable
2760 Expr *getRetValue() { return reinterpret_cast<Expr *>(RetExpr); } in getRetValue()
2761 const Expr *getRetValue() const { return reinterpret_cast<Expr *>(RetExpr); } in getRetValue()
2762 void setRetValue(Expr *E) { RetExpr = reinterpret_cast<Stmt *>(E); } in setRetValue()
2788 return RetExpr ? RetExpr->getEndLoc() : getReturnLoc(); in getEndLoc()
2797 if (RetExpr) in children()
2798 return child_range(&RetExpr, &RetExpr + 1); in children()
2803 if (RetExpr) in children()
2804 return const_child_range(&RetExpr, &RetExpr + 1); in children()
/external/clang/include/clang/AST/
DStmt.h1368 Stmt *RetExpr; variable
1375 : Stmt(ReturnStmtClass), RetLoc(RL), RetExpr((Stmt *)E), in ReturnStmt()
1383 void setRetValue(Expr *E) { RetExpr = reinterpret_cast<Stmt*>(E); } in setRetValue()
1398 return RetExpr ? RetExpr->getLocEnd() : RetLoc; in getLocEnd()
1407 if (RetExpr) return child_range(&RetExpr, &RetExpr+1); in children()
/external/clang/lib/Sema/
DSemaStmt.cpp3063 Expr *&RetExpr, in DeduceFunctionTypeFromReturnExpr() argument
3068 if (RetExpr && isa<InitListExpr>(RetExpr)) { in DeduceFunctionTypeFromReturnExpr()
3071 Diag(RetExpr->getExprLoc(), in DeduceFunctionTypeFromReturnExpr()
3074 << RetExpr->getSourceRange(); in DeduceFunctionTypeFromReturnExpr()
3087 if (RetExpr) { in DeduceFunctionTypeFromReturnExpr()
3090 DeduceAutoResult DAR = DeduceAutoType(OrigResultType, RetExpr, Deduced); in DeduceFunctionTypeFromReturnExpr()
3093 Diag(RetExpr->getExprLoc(), diag::err_auto_fn_deduction_failure) in DeduceFunctionTypeFromReturnExpr()
3094 << OrigResultType.getType() << RetExpr->getType(); in DeduceFunctionTypeFromReturnExpr()
3102 Referencer.TraverseType(RetExpr->getType()); in DeduceFunctionTypeFromReturnExpr()
/external/llvm-project/clang/lib/Sema/
DSemaStmt.cpp3519 Expr *&RetExpr, in DeduceFunctionTypeFromReturnExpr() argument
3530 if (RetExpr && isa<InitListExpr>(RetExpr)) { in DeduceFunctionTypeFromReturnExpr()
3533 Diag(RetExpr->getExprLoc(), in DeduceFunctionTypeFromReturnExpr()
3536 << RetExpr->getSourceRange(); in DeduceFunctionTypeFromReturnExpr()
3549 if (RetExpr) { in DeduceFunctionTypeFromReturnExpr()
3552 DeduceAutoResult DAR = DeduceAutoType(OrigResultType, RetExpr, Deduced); in DeduceFunctionTypeFromReturnExpr()
3555 Diag(RetExpr->getExprLoc(), diag::err_auto_fn_deduction_failure) in DeduceFunctionTypeFromReturnExpr()
3556 << OrigResultType.getType() << RetExpr->getType(); in DeduceFunctionTypeFromReturnExpr()
3564 Referencer.TraverseType(RetExpr->getType()); in DeduceFunctionTypeFromReturnExpr()
/external/llvm-project/clang/lib/CodeGen/
DCGStmt.cpp1138 SaveRetExprRAII(const Expr *RetExpr, CodeGenFunction &CGF) in SaveRetExprRAII()
1139 : OldRetExpr(CGF.RetExpr), CGF(CGF) { in SaveRetExprRAII()
1140 CGF.RetExpr = RetExpr; in SaveRetExprRAII()
1142 ~SaveRetExprRAII() { CGF.RetExpr = OldRetExpr; } in ~SaveRetExprRAII()
DCGBlocks.cpp1079 auto *EWC = llvm::dyn_cast_or_null<ExprWithCleanups>(RetExpr); in EmitBlockLiteral()
DCodeGenFunction.h347 const Expr *RetExpr = nullptr;
/external/clang/lib/AST/
DStmt.cpp900 return cast_or_null<Expr>(RetExpr); in getRetValue()
903 return cast_or_null<Expr>(RetExpr); in getRetValue()
DExprConstant.cpp3646 const Expr *RetExpr = cast<ReturnStmt>(S)->getRetValue(); in EvaluateStmt() local
3648 if (RetExpr && in EvaluateStmt()
3650 ? EvaluateInPlace(Result.Value, Info, *Result.Slot, RetExpr) in EvaluateStmt()
3651 : Evaluate(Result.Value, Info, RetExpr))) in EvaluateStmt()
/external/clang/utils/TableGen/
DNeonEmitter.cpp1382 std::string RetExpr; in emitBodyAsBuiltinCall() local
1384 RetExpr = RetVar.getName() + " = "; in emitBodyAsBuiltinCall()
1386 OS << " " << RetExpr << S; in emitBodyAsBuiltinCall()
/external/llvm-project/clang/utils/TableGen/
DNeonEmitter.cpp1347 std::string RetExpr; in emitBodyAsBuiltinCall() local
1349 RetExpr = RetVar.getName() + " = "; in emitBodyAsBuiltinCall()
1351 OS << " " << RetExpr << S; in emitBodyAsBuiltinCall()
/external/llvm-project/clang/lib/AST/
DStmt.cpp1168 : Stmt(ReturnStmtClass), RetExpr(E) { in ReturnStmt()
DExprConstant.cpp5143 const Expr *RetExpr = cast<ReturnStmt>(S)->getRetValue(); in EvaluateStmt() local
5145 if (RetExpr && RetExpr->isValueDependent()) in EvaluateStmt()
5146 return EvaluateDependentExpr(RetExpr, Info) ? ESR_Returned : ESR_Failed; in EvaluateStmt()
5147 if (RetExpr && in EvaluateStmt()
5149 ? EvaluateInPlace(Result.Value, Info, *Result.Slot, RetExpr) in EvaluateStmt()
5150 : Evaluate(Result.Value, Info, RetExpr))) in EvaluateStmt()
/external/clang/include/clang/Sema/
DSema.h6553 Expr *&RetExpr, AutoType *AT);
/external/llvm-project/clang/include/clang/Sema/
DSema.h8341 Expr *&RetExpr, AutoType *AT);