Lines Matching refs:Ex

824 Sema::ActOnCXXThrow(Scope *S, SourceLocation OpLoc, Expr *Ex) {  in ActOnCXXThrow()  argument
826 if (Ex) { in ActOnCXXThrow()
838 if (const auto *DRE = dyn_cast<DeclRefExpr>(Ex->IgnoreParens())) in ActOnCXXThrow()
857 return BuildCXXThrow(OpLoc, Ex, IsThrownVarInScope); in ActOnCXXThrow()
860 ExprResult Sema::BuildCXXThrow(SourceLocation OpLoc, Expr *Ex, in BuildCXXThrow() argument
891 if (Ex && !Ex->isTypeDependent()) { in BuildCXXThrow()
908 IsThrownVarInScope ? getNamedReturnInfo(Ex) : NamedReturnInfo(); in BuildCXXThrow()
910 QualType ExceptionObjectTy = Context.getExceptionObjectType(Ex->getType()); in BuildCXXThrow()
911 if (CheckCXXThrowOperand(OpLoc, ExceptionObjectTy, Ex)) in BuildCXXThrow()
916 ExprResult Res = PerformMoveOrCopyInitialization(Entity, NRInfo, Ex); in BuildCXXThrow()
919 Ex = Res.get(); in BuildCXXThrow()
923 if (Ex && Context.getTargetInfo().getTriple().isPPC64()) in BuildCXXThrow()
924 PPC().CheckPPCMMAType(Ex->getType(), Ex->getBeginLoc()); in BuildCXXThrow()
927 CXXThrowExpr(Ex, Context.VoidTy, OpLoc, IsThrownVarInScope); in BuildCXXThrow()
3632 ExprResult Ex = ExE; in ActOnCXXDelete() local
3637 if (!Ex.get()->isTypeDependent()) { in ActOnCXXDelete()
3639 Ex = DefaultLvalueConversion(Ex.get()); in ActOnCXXDelete()
3640 if (Ex.isInvalid()) in ActOnCXXDelete()
3643 QualType Type = Ex.get()->getType(); in ActOnCXXDelete()
3698 Ex = PerformContextualImplicitConversion(StartLoc, Ex.get(), Converter); in ActOnCXXDelete()
3699 if (Ex.isInvalid()) in ActOnCXXDelete()
3701 Type = Ex.get()->getType(); in ActOnCXXDelete()
3712 return Diag(Ex.get()->getBeginLoc(), in ActOnCXXDelete()
3726 << Ex.get()->getSourceRange(); in ActOnCXXDelete()
3730 << Type << Ex.get()->getSourceRange()); in ActOnCXXDelete()
3738 Ex.get())) { in ActOnCXXDelete()
3746 << Type << Ex.get()->getSourceRange() in ActOnCXXDelete()
3816 CheckDestructorAccess(Ex.get()->getExprLoc(), Dtor, in ActOnCXXDelete()
3837 Ex = ImpCastExprToType(Ex.get(), Unqual, CK_NoOp); in ActOnCXXDelete()
3839 Ex = PerformImplicitConversion(Ex.get(), ParamType, AA_Passing); in ActOnCXXDelete()
3840 if (Ex.isInvalid()) in ActOnCXXDelete()
3847 UsualArrayDeleteWantsSize, OperatorDelete, Ex.get(), StartLoc); in ActOnCXXDelete()