Lines Matching refs:ExprResult
401 ExprResult Sema::DefaultFunctionArrayConversion(Expr *E) {
404 ExprResult result = CheckPlaceholderExpr(E);
453 ExprResult Sema::DefaultLvalueConversion(Expr *E) {
456 ExprResult result = CheckPlaceholderExpr(E);
515 ExprResult Res = Owned(ImplicitCastExpr::Create(Context, T, CK_LValueToRValue,
530 ExprResult Sema::DefaultFunctionArrayLvalueConversion(Expr *E) {
531 ExprResult Res = DefaultFunctionArrayConversion(E);
546 ExprResult Sema::UsualUnaryConversions(Expr *E) {
548 ExprResult Res = DefaultFunctionArrayLvalueConversion(E);
595 ExprResult Sema::DefaultArgumentPromotion(Expr *E) {
599 ExprResult Res = UsualUnaryConversions(E);
623 ExprResult Temp = PerformCopyInitialization(
695 ExprResult Sema::DefaultVariadicArgumentPromotion(Expr *E, VariadicCallType CT,
706 ExprResult ExprRes = CheckPlaceholderExpr(E);
713 ExprResult ExprRes = DefaultArgumentPromotion(E);
727 ExprResult TrapFn = ActOnIdExpression(TUScope, SS, TemplateKWLoc,
732 ExprResult Call = ActOnCallExpr(TUScope, TrapFn.get(),
738 ExprResult Comma = ActOnBinOp(TUScope, E->getLocStart(), tok::comma,
758 static bool handleIntegerToComplexFloatConversion(Sema &S, ExprResult &IntExpr,
759 ExprResult &ComplexExpr,
781 handleComplexFloatToComplexFloatConverstion(Sema &S, ExprResult &LHS,
782 ExprResult &RHS, QualType LHSType,
802 ExprResult &ComplexExpr,
803 ExprResult &OtherExpr,
842 static QualType handleComplexFloatConversion(Sema &S, ExprResult &LHS,
843 ExprResult &RHS, QualType LHSType,
889 static QualType handleIntToFloatConversion(Sema &S, ExprResult &FloatExpr,
890 ExprResult &IntExpr,
920 static QualType handleFloatConversion(Sema &S, ExprResult &LHS,
921 ExprResult &RHS, QualType LHSType,
951 typedef ExprResult PerformCastFn(Sema &S, Expr *operand, QualType toType);
956 ExprResult doIntegralCast(Sema &S, Expr *op, QualType toType) {
960 ExprResult doComplexIntegralCast(Sema &S, Expr *op, QualType toType) {
969 static QualType handleIntegerConversion(Sema &S, ExprResult &LHS,
970 ExprResult &RHS, QualType LHSType,
1019 static QualType handleComplexIntConversion(Sema &S, ExprResult &LHS,
1020 ExprResult &RHS, QualType LHSType,
1066 QualType Sema::UsualArithmeticConversions(ExprResult &LHS, ExprResult &RHS,
1140 ExprResult
1161 ExprResult ER = CreateGenericSelectionExpr(KeyLoc, DefaultLoc, RParenLoc,
1168 ExprResult
1177 ExprResult result = CheckPlaceholderExpr(ControllingExpr);
1315 static ExprResult BuildCookedLiteralOperatorCall(Sema &S, Scope *Scope,
1348 ExprResult
1421 ExprResult
1431 ExprResult
1732 ExprResult Sema::ActOnIdExpression(Scope *S,
1815 ExprResult E(LookupInObjCMethod(R, S, II, true));
1864 ExprResult E(LookupInObjCMethod(R, S, Ivar->getIdentifier()));
1930 ExprResult
1978 ExprResult
2041 ExprResult SelfExpr = ActOnIdExpression(S, SelfScopeSpec, TemplateKWLoc,
2127 ExprResult
2356 ExprResult
2389 ExprResult
2592 ExprResult Sema::ActOnPredefinedExpr(SourceLocation Loc, tok::TokenKind Kind) {
2636 ExprResult Sema::ActOnCharacterConstant(const Token &Tok, Scope *UDLScope) {
2690 ExprResult Sema::ActOnIntegerConstant(SourceLocation Loc, uint64_t Val) {
2728 ExprResult Sema::ActOnNumericConstant(const Token &Tok, Scope *UDLScope) {
2987 ExprResult Sema::ActOnParenExpr(SourceLocation L, SourceLocation R, Expr *E) {
3191 ExprResult
3213 ExprResult
3216 ExprResult PE = CheckPlaceholderExpr(E);
3255 ExprResult
3269 ExprResult Result = CreateUnaryExprOrTypeTraitExpr(ArgEx, OpLoc, ExprKind);
3273 static QualType CheckRealImagOperand(Sema &S, ExprResult &V, SourceLocation Loc,
3294 ExprResult PR = S.CheckPlaceholderExpr(V.get());
3309 ExprResult
3320 ExprResult Result = MaybeConvertParenListExprToParenExpr(S, Input);
3343 ExprResult
3348 ExprResult result = MaybeConvertParenListExprToParenExpr(S, base);
3359 ExprResult result = CheckPlaceholderExpr(base);
3364 ExprResult result = CheckPlaceholderExpr(idx);
3396 ExprResult
3404 ExprResult Result = DefaultFunctionArrayLvalueConversion(LHSExp);
3409 ExprResult Result = DefaultFunctionArrayLvalueConversion(RHSExp);
3543 ExprResult Sema::BuildCXXDefaultArgExpr(SourceLocation CallLoc,
3573 ExprResult Result;
3800 ExprResult ArgE = PerformCopyInitialization(Entity,
3813 ExprResult ArgExpr =
3840 ExprResult arg = checkUnknownAnyArg(CallLoc, Args[i], paramType);
3848 ExprResult Arg = DefaultVariadicArgumentPromotion(Args[i], CallType,
3918 static ExprResult rebuildUnknownAnyFunction(Sema &S, Expr *fn);
3923 ExprResult
3928 ExprResult Result = MaybeConvertParenListExprToParenExpr(S, Fn);
3977 ExprResult result = rebuildUnknownAnyFunction(*this, Fn);
4008 ExprResult result = rebuildUnknownAnyFunction(*this, Fn);
4030 ExprResult
4051 ExprResult Sema::ActOnAsTypeExpr(Expr *E, ParsedType ParsedDestTy,
4074 ExprResult
4086 ExprResult Result;
4134 ExprResult
4208 ExprResult ArgE = PerformCopyInitialization(Entity,
4217 ExprResult ArgE = DefaultArgumentPromotion(Arg);
4258 ExprResult
4273 ExprResult
4300 ExprResult Result = InitSeq.Perform(*this, Entity, Kind, LiteralExpr,
4320 ExprResult
4327 ExprResult result = CheckPlaceholderExpr(InitArgList[I]);
4347 static void maybeExtendBlockObject(Sema &S, ExprResult &E) {
4362 CastKind Sema::PrepareCastToObjCObjectPointer(ExprResult &E) {
4377 CastKind Sema::PrepareScalarCast(ExprResult &Src, QualType DestTy) {
4558 ExprResult Sema::CheckExtVectorCast(SourceRange R, QualType DestTy,
4589 ExprResult CastExprRes = Owned(CastExpr);
4599 ExprResult
4650 ExprResult Result = MaybeConvertParenListExprToParenExpr(S, CastExpr);
4658 ExprResult Sema::BuildVectorLiteral(SourceLocation LParenLoc,
4698 ExprResult Literal = DefaultLvalueConversion(exprs[0]);
4720 ExprResult Literal = DefaultLvalueConversion(exprs[0]);
4740 ExprResult
4746 ExprResult Result(E->getExpr(0));
4757 ExprResult Sema::ActOnParenListExpr(SourceLocation L,
4826 static bool checkConditionalConvertScalarsToVectors(Sema &S, ExprResult &LHS,
4827 ExprResult &RHS,
4848 static QualType checkConditionalVoidType(Sema &S, ExprResult &LHS,
4849 ExprResult &RHS) {
4866 static bool checkConditionalNullPointer(Sema &S, ExprResult &NullExpr,
4879 static QualType checkConditionalPointerCompatibility(Sema &S, ExprResult &LHS,
4880 ExprResult &RHS,
4946 ExprResult &LHS,
4947 ExprResult &RHS,
4971 checkConditionalObjectPointersCompatibility(Sema &S, ExprResult &LHS,
4972 ExprResult &RHS,
5010 static bool checkPointerIntegerMismatch(Sema &S, ExprResult &Int,
5031 QualType Sema::CheckConditionalOperands(ExprResult &Cond, ExprResult &LHS,
5032 ExprResult &RHS, ExprValueKind &VK,
5036 ExprResult LHSResult = CheckPlaceholderExpr(LHS.get());
5040 ExprResult RHSResult = CheckPlaceholderExpr(RHS.get());
5154 QualType Sema::FindCompositeObjCPointerType(ExprResult &LHS, ExprResult &RHS,
5412 ExprResult Sema::ActOnConditionalOp(SourceLocation QuestionLoc,
5432 ExprResult commonRes = UsualUnaryConversions(commonExpr);
5448 ExprResult Cond = Owned(CondExpr), LHS = Owned(LHSExpr), RHS = Owned(RHSExpr);
5669 ExprResult RHSPtr = &RHSExpr;
5693 Sema::CheckAssignmentConstraints(QualType LHSType, ExprResult &RHS,
5958 ExprResult &EResult, QualType UnionType,
5978 ExprResult &RHS) {
6031 Sema::CheckSingleAssignmentConstraints(QualType LHSType, ExprResult &RHS,
6038 ExprResult Res;
6111 QualType Sema::InvalidOperands(SourceLocation Loc, ExprResult &LHS,
6112 ExprResult &RHS) {
6119 QualType Sema::CheckVectorOperands(ExprResult &LHS, ExprResult &RHS,
6210 static void checkArithmeticNull(Sema &S, ExprResult &LHS, ExprResult &RHS,
6246 QualType Sema::CheckMultiplyDivideOperands(ExprResult &LHS, ExprResult &RHS,
6274 ExprResult &LHS, ExprResult &RHS, SourceLocation Loc, bool IsCompAssign) {
6488 ExprResult &LHS, ExprResult &RHS, SourceLocation Loc, unsigned Opc,
6560 QualType Sema::CheckSubtractionOperands(ExprResult &LHS, ExprResult &RHS,
6644 static void DiagnoseBadShiftValues(Sema& S, ExprResult &LHS, ExprResult &RHS,
6714 QualType Sema::CheckShiftOperands(ExprResult &LHS, ExprResult &RHS,
6741 ExprResult OldLHS = LHS;
6799 ExprResult &LHS, ExprResult &RHS,
6810 ExprResult &LHS, ExprResult &RHS) {
6855 ExprResult &LHS,
6856 ExprResult &RHS,
6864 static bool isObjCObjectLiteral(ExprResult &E) {
6970 ExprResult &LHS, ExprResult &RHS,
7019 QualType Sema::CheckCompareOperands(ExprResult &LHS, ExprResult &RHS,
7427 QualType Sema::CheckVectorCompareOperands(ExprResult &LHS, ExprResult &RHS,
7469 QualType Sema::CheckVectorLogicalOperands(ExprResult &LHS, ExprResult &RHS,
7484 ExprResultExprResult &RHS, SourceLocation Loc, bool IsCompAssign) {
7496 ExprResult LHSResult = Owned(LHS), RHSResult = Owned(RHS);
7510 ExprResult &LHS, ExprResult &RHS, SourceLocation Loc, unsigned Opc) {
7585 ExprResult LHSRes = PerformContextuallyConvertToBool(LHS.get());
7590 ExprResult RHSRes = PerformContextuallyConvertToBool(RHS.get());
7795 QualType Sema::CheckAssignmentOperands(Expr *LHSExpr, ExprResult &RHS,
7901 static QualType CheckCommaOperands(Sema &S, ExprResult &LHS, ExprResult &RHS,
7975 ExprResult PR = S.CheckPlaceholderExpr(Op);
8084 static QualType CheckAddressOfOperand(Sema &S, ExprResult &OrigOp,
8257 ExprResult ConvResult = S.UsualUnaryConversions(Op);
8280 ExprResult PR = S.CheckPlaceholderExpr(Op);
8400 ExprResult Sema::CreateBuiltinBinOp(SourceLocation OpLoc,
8415 ExprResult Init = InitSeq.Perform(*this, Entity, Kind, RHSExpr);
8421 ExprResult LHS = Owned(LHSExpr), RHS = Owned(RHSExpr);
8728 ExprResult Sema::ActOnBinOp(Scope *S, SourceLocation TokLoc,
8742 static ExprResult BuildOverloadedBinOp(Sema &S, Scope *Sc, SourceLocation OpLoc,
8761 ExprResult Sema::BuildBinOp(Scope *S, SourceLocation OpLoc,
8784 ExprResult resolvedRHS = CheckPlaceholderExpr(RHSExpr);
8793 ExprResult LHS = CheckPlaceholderExpr(LHSExpr);
8817 ExprResult resolvedRHS = CheckPlaceholderExpr(RHSExpr);
8839 ExprResult Sema::CreateBuiltinUnaryOp(SourceLocation OpLoc,
8842 ExprResult Input = Owned(InputExpr);
9045 ExprResult Sema::BuildUnaryOp(Scope *S, SourceLocation OpLoc,
9068 ExprResult Result = CheckPlaceholderExpr(Input);
9093 ExprResult Sema::ActOnUnaryOp(Scope *S, SourceLocation OpLoc,
9099 ExprResult Sema::ActOnAddrLabel(SourceLocation OpLoc, SourceLocation LabLoc,
9142 ExprResult
9178 ExprResult LastExpr = DefaultFunctionArrayConversion(LastE);
9223 ExprResult Sema::BuildBuiltinOffsetOf(SourceLocation BuiltinLoc,
9272 ExprResult IdxRval = DefaultLvalueConversion(static_cast<Expr*>(OC.U.E));
9393 ExprResult Sema::ActOnBuiltinOffsetOf(Scope *S,
9414 ExprResult Sema::ActOnChooseExpr(SourceLocation BuiltinLoc,
9430 ExprResult CondICE
9617 ExprResult Sema::ActOnBlockStmtExpr(SourceLocation CaretLoc,
9742 ExprResult Sema::ActOnVAArg(SourceLocation BuiltinLoc,
9750 ExprResult Sema::BuildVAArgExpr(SourceLocation BuiltinLoc,
9763 ExprResult Result = UsualUnaryConversions(E);
9773 ExprResult Init = PerformCopyInitialization(Entity, SourceLocation(), E);
9835 ExprResult Sema::ActOnGNUNullExpr(SourceLocation TokenLoc) {
10047 ExprResult Sema::VerifyIntegerConstantExpression(Expr *E,
10059 ExprResult Sema::VerifyIntegerConstantExpression(Expr *E,
10083 ExprResult
10095 ExprResult Converted;
10295 ExprResult TransformDeclRefExpr(DeclRefExpr *E) {
10306 ExprResult TransformUnaryOperator(UnaryOperator *E) {
10313 ExprResult TransformLambdaExpr(LambdaExpr *E) {
10320 ExprResult Sema::TransformToPotentiallyEvaluated(Expr *E) {
10408 ExprResult Sema::HandleExprEvaluationContextForTypeof(Expr *E) {
10669 static ExprResult captureInLambda(Sema &S, LambdaScopeInfo *LSI,
10734 ExprResult IterationVarRef
10743 ExprResult Subscript = S.CreateBuiltinArraySubscriptExpr(
10771 ExprResult Result(true);
10978 ExprResult Result
11060 ExprResult Result = captureInLambda(*this, LSI, Var, CaptureType,
11137 ExprResult Sema::ActOnConstantExpression(ExprResult Res) {
11603 ExprResult Sema::CheckBooleanCondition(Expr *E, SourceLocation Loc) {
11608 ExprResult result = CheckPlaceholderExpr(E);
11616 ExprResult ERes = DefaultFunctionArrayLvalueConversion(E);
11632 ExprResult Sema::ActOnBooleanCondition(Scope *S, SourceLocation Loc,
11644 : StmtVisitor<RebuildUnknownAnyFunction, ExprResult> {
11650 ExprResult VisitStmt(Stmt *S) {
11654 ExprResult VisitExpr(Expr *E) {
11662 template <class T> ExprResult rebuildSugarExpr(T *E) {
11663 ExprResult SubResult = Visit(E->getSubExpr());
11674 ExprResult VisitParenExpr(ParenExpr *E) {
11678 ExprResult VisitUnaryExtension(UnaryOperator *E) {
11682 ExprResult VisitUnaryAddrOf(UnaryOperator *E) {
11683 ExprResult SubResult = Visit(E->getSubExpr());
11694 ExprResult resolveDecl(Expr *E, ValueDecl *VD) {
11708 ExprResult VisitMemberExpr(MemberExpr *E) {
11712 ExprResult VisitDeclRefExpr(DeclRefExpr *E) {
11720 static ExprResult rebuildUnknownAnyFunction(Sema &S, Expr *FunctionExpr) {
11721 ExprResult Result = RebuildUnknownAnyFunction(S).Visit(FunctionExpr);
11732 : StmtVisitor<RebuildUnknownAnyExpr, ExprResult> {
11742 ExprResult VisitStmt(Stmt *S) {
11746 ExprResult VisitExpr(Expr *E) {
11752 ExprResult VisitCallExpr(CallExpr *E);
11753 ExprResult VisitObjCMessageExpr(ObjCMessageExpr *E);
11757 template <class T> ExprResult rebuildSugarExpr(T *E) {
11758 ExprResult SubResult = Visit(E->getSubExpr());
11768 ExprResult VisitParenExpr(ParenExpr *E) {
11772 ExprResult VisitUnaryExtension(UnaryOperator *E) {
11776 ExprResult VisitUnaryAddrOf(UnaryOperator *E) {
11789 ExprResult SubResult = Visit(E->getSubExpr());
11795 ExprResult VisitImplicitCastExpr(ImplicitCastExpr *E);
11797 ExprResult resolveDecl(Expr *E, ValueDecl *VD);
11799 ExprResult VisitMemberExpr(MemberExpr *E) {
11803 ExprResult VisitDeclRefExpr(DeclRefExpr *E) {
11810 ExprResult RebuildUnknownAnyExpr::VisitCallExpr(CallExpr *E) {
11877 ExprResult CalleeResult = Visit(CalleeExpr);
11885 ExprResult RebuildUnknownAnyExpr::VisitObjCMessageExpr(ObjCMessageExpr *E) {
11906 ExprResult RebuildUnknownAnyExpr::VisitImplicitCastExpr(ImplicitCastExpr *E) {
11917 ExprResult Result = Visit(E->getSubExpr());
11933 ExprResult Result = Visit(E->getSubExpr());
11943 ExprResult RebuildUnknownAnyExpr::resolveDecl(Expr *E, ValueDecl *VD) {
11953 ExprResult Result = resolveDecl(E, VD);
12000 ExprResult Sema::checkUnknownAnyCast(SourceRange TypeRange, QualType CastType,
12004 ExprResult result = RebuildUnknownAnyExpr(*this, CastType).Visit(CastExpr);
12014 ExprResult Sema::forceUnknownAnyToType(Expr *E, QualType ToType) {
12018 ExprResult Sema::checkUnknownAnyArg(SourceLocation callLoc,
12024 ExprResult result = DefaultArgumentPromotion(arg);
12041 static ExprResult diagnoseUnknownAnyExpr(Sema &S, Expr *E) {
12086 ExprResult Sema::CheckPlaceholderExpr(Expr *E) {
12096 ExprResult result = Owned(E);
12110 ExprResult result = Owned(E);
12155 ExprResult