Lines Matching refs:ExprResult

503 ExprResult Sema::DefaultFunctionArrayConversion(Expr *E, bool Diagnose) {  in DefaultFunctionArrayConversion()
506 ExprResult result = CheckPlaceholderExpr(E); in DefaultFunctionArrayConversion()
623 ExprResult Sema::DefaultLvalueConversion(Expr *E) { in DefaultLvalueConversion()
626 ExprResult result = CheckPlaceholderExpr(E); in DefaultLvalueConversion()
701 ExprResult Res = CheckLValueToRValueConversionOperand(E); in DefaultLvalueConversion()
732 ExprResult Sema::DefaultFunctionArrayLvalueConversion(Expr *E, bool Diagnose) { in DefaultFunctionArrayLvalueConversion()
733 ExprResult Res = DefaultFunctionArrayConversion(E, Diagnose); in DefaultFunctionArrayLvalueConversion()
744 ExprResult Sema::CallExprUnaryConversions(Expr *E) { in CallExprUnaryConversions()
746 ExprResult Res = E; in CallExprUnaryConversions()
766 ExprResult Sema::UsualUnaryConversions(Expr *E) { in UsualUnaryConversions()
768 ExprResult Res = DefaultFunctionArrayLvalueConversion(E); in UsualUnaryConversions()
815 ExprResult Sema::DefaultArgumentPromotion(Expr *E) { in DefaultArgumentPromotion()
819 ExprResult Res = UsualUnaryConversions(E); in DefaultArgumentPromotion()
853 ExprResult Temp = PerformCopyInitialization( in DefaultArgumentPromotion()
964 ExprResult Sema::DefaultVariadicArgumentPromotion(Expr *E, VariadicCallType CT, in DefaultVariadicArgumentPromotion()
975 ExprResult ExprRes = CheckPlaceholderExpr(E); in DefaultVariadicArgumentPromotion()
982 ExprResult ExprRes = DefaultArgumentPromotion(E); in DefaultVariadicArgumentPromotion()
1001 ExprResult TrapFn = ActOnIdExpression(TUScope, SS, TemplateKWLoc, Name, in DefaultVariadicArgumentPromotion()
1007 ExprResult Call = BuildCallExpr(TUScope, TrapFn.get(), E->getBeginLoc(), in DefaultVariadicArgumentPromotion()
1012 ExprResult Comma = in DefaultVariadicArgumentPromotion()
1032 static bool handleIntegerToComplexFloatConversion(Sema &S, ExprResult &IntExpr, in handleIntegerToComplexFloatConversion()
1033 ExprResult &ComplexExpr, in handleIntegerToComplexFloatConversion()
1054 static QualType handleComplexFloatConversion(Sema &S, ExprResult &LHS, in handleComplexFloatConversion()
1055 ExprResult &RHS, QualType LHSType, in handleComplexFloatConversion()
1110 static QualType handleIntToFloatConversion(Sema &S, ExprResult &FloatExpr, in handleIntToFloatConversion()
1111 ExprResult &IntExpr, in handleIntToFloatConversion()
1141 static QualType handleFloatConversion(Sema &S, ExprResult &LHS, in handleFloatConversion()
1142 ExprResult &RHS, QualType LHSType, in handleFloatConversion()
1229 typedef ExprResult PerformCastFn(Sema &S, Expr *operand, QualType toType);
1234 ExprResult doIntegralCast(Sema &S, Expr *op, QualType toType) { in doIntegralCast()
1238 ExprResult doComplexIntegralCast(Sema &S, Expr *op, QualType toType) { in doComplexIntegralCast()
1247 static QualType handleIntegerConversion(Sema &S, ExprResult &LHS, in handleIntegerConversion()
1248 ExprResult &RHS, QualType LHSType, in handleIntegerConversion()
1297 static QualType handleComplexIntConversion(Sema &S, ExprResult &LHS, in handleComplexIntConversion()
1298 ExprResult &RHS, QualType LHSType, in handleComplexIntConversion()
1487 QualType Sema::UsualArithmeticConversions(ExprResult &LHS, ExprResult &RHS, in UsualArithmeticConversions()
1576 ExprResult
1594 ExprResult ER = CreateGenericSelectionExpr(KeyLoc, DefaultLoc, RParenLoc, in ActOnGenericSelectionExpr()
1602 ExprResult
1617 ExprResult R = DefaultFunctionArrayLvalueConversion(ControllingExpr); in CreateGenericSelectionExpr()
1757 static ExprResult BuildCookedLiteralOperatorCall(Sema &S, Scope *Scope, in BuildCookedLiteralOperatorCall()
1792 ExprResult
2420 ExprResult
2511 ExprResult E(LookupInObjCMethod(R, S, II, true)); in ActOnIdExpression()
2595 ExprResult E(LookupInObjCMethod(R, S, Ivar->getIdentifier())); in ActOnIdExpression()
2672 ExprResult Sema::BuildQualifiedDeclarationNameExpr( in BuildQualifiedDeclarationNameExpr()
2832 ExprResult Sema::BuildIvarRefExpr(Scope *S, SourceLocation Loc, in BuildIvarRefExpr()
2858 ExprResult SelfExpr = in BuildIvarRefExpr()
2896 ExprResult
2911 return ExprResult(false); in LookupInObjCMethod()
2934 ExprResult
3156 ExprResult Sema::BuildDeclarationNameExpr(const CXXScopeSpec &SS, in BuildDeclarationNameExpr()
3195 ExprResult Sema::BuildDeclarationNameExpr( in BuildDeclarationNameExpr()
3460 ExprResult Sema::BuildPredefinedExpr(SourceLocation Loc, in BuildPredefinedExpr()
3513 ExprResult Sema::ActOnPredefinedExpr(SourceLocation Loc, tok::TokenKind Kind) { in ActOnPredefinedExpr()
3530 ExprResult Sema::ActOnCharacterConstant(const Token &Tok, Scope *UDLScope) { in ActOnCharacterConstant()
3587 ExprResult Sema::ActOnIntegerConstant(SourceLocation Loc, uint64_t Val) { in ActOnIntegerConstant()
3638 ExprResult R = VerifyIntegerConstantExpression(E, &ValueAPS); in CheckLoopHintExpr()
3653 ExprResult Sema::ActOnNumericConstant(const Token &Tok, Scope *UDLScope) { in ActOnNumericConstant()
3991 ExprResult Sema::ActOnParenExpr(SourceLocation L, SourceLocation R, Expr *E) { in ActOnParenExpr()
4094 ExprResult Result = CheckUnevaluatedOperand(E); in CheckUnaryExprOrTypeTraitOperand()
4409 ExprResult
4454 ExprResult
4457 ExprResult PE = CheckPlaceholderExpr(E); in CreateUnaryExprOrTypeTraitExpr()
4498 ExprResult
4512 ExprResult Result = CreateUnaryExprOrTypeTraitExpr(ArgEx, OpLoc, ExprKind); in ActOnUnaryExprOrTypeTraitExpr()
4516 static QualType CheckRealImagOperand(Sema &S, ExprResult &V, SourceLocation Loc, in CheckRealImagOperand()
4537 ExprResult PR = S.CheckPlaceholderExpr(V.get()); in CheckRealImagOperand()
4552 ExprResult
4563 ExprResult Result = MaybeConvertParenListExprToParenExpr(S, Input); in ActOnPostfixUnaryOp()
4594 ExprResult
4605 ExprResult result = MaybeConvertParenListExprToParenExpr(S, base); in ActOnArraySubscriptExpr()
4653 ExprResult result = CheckPlaceholderExpr(base); in ActOnArraySubscriptExpr()
4678 ExprResult result = CheckPlaceholderExpr(idx); in ActOnArraySubscriptExpr()
4720 ExprResult Res = CreateBuiltinArraySubscriptExpr(base, lbLoc, idx, rbLoc); in ActOnArraySubscriptExpr()
4728 ExprResult Sema::tryConvertExprToType(Expr *E, QualType Ty) { in tryConvertExprToType()
4736 ExprResult Sema::CreateBuiltinMatrixSubscriptExpr(Expr *Base, Expr *RowIdx, in CreateBuiltinMatrixSubscriptExpr()
4739 ExprResult BaseR = CheckPlaceholderExpr(Base); in CreateBuiltinMatrixSubscriptExpr()
4744 ExprResult RowR = CheckPlaceholderExpr(RowIdx); in CreateBuiltinMatrixSubscriptExpr()
4759 ExprResult ColumnR = CheckPlaceholderExpr(ColumnIdx); in CreateBuiltinMatrixSubscriptExpr()
4785 ExprResult ConvExpr = in CreateBuiltinMatrixSubscriptExpr()
4850 ExprResult Sema::ActOnOMPArraySectionExpr(Expr *Base, SourceLocation LBLoc, in ActOnOMPArraySectionExpr()
4859 ExprResult Result = CheckPlaceholderExpr(Base); in ActOnOMPArraySectionExpr()
4865 ExprResult Result = CheckPlaceholderExpr(LowerBound); in ActOnOMPArraySectionExpr()
4874 ExprResult Result = CheckPlaceholderExpr(Length); in ActOnOMPArraySectionExpr()
4883 ExprResult Result = CheckPlaceholderExpr(Stride); in ActOnOMPArraySectionExpr()
4945 ExprResult Res = in ActOnOMPArraySectionExpr()
5028 ExprResult Result = DefaultFunctionArrayLvalueConversion(Base); in ActOnOMPArraySectionExpr()
5038 ExprResult Sema::ActOnOMPArrayShapingExpr(Expr *Base, SourceLocation LParenLoc, in ActOnOMPArrayShapingExpr()
5043 ExprResult Result = CheckPlaceholderExpr(Base); in ActOnOMPArrayShapingExpr()
5068 ExprResult Result = CheckPlaceholderExpr(Dim); in ActOnOMPArrayShapingExpr()
5081 ExprResult Result = in ActOnOMPArrayShapingExpr()
5113 ExprResult Sema::ActOnOMPIteratorExpr(Scope *S, SourceLocation IteratorKwLoc, in ActOnOMPIteratorExpr()
5184 ExprResult BeginRes = in ActOnOMPIteratorExpr()
5190 ExprResult EndRes = PerformImplicitConversion(End, DeclTy, AA_Converting); in ActOnOMPIteratorExpr()
5240 ExprResult Res = CreateBuiltinBinOp(D.AssignmentLoc, BO_Sub, D.Range.End, in ActOnOMPIteratorExpr()
5246 ExprResult St, St1; in ActOnOMPIteratorExpr()
5271 ExprResult Res1 = CreateBuiltinBinOp(D.AssignmentLoc, BO_Sub, in ActOnOMPIteratorExpr()
5300 ExprResult CmpRes = in ActOnOMPIteratorExpr()
5327 ExprResult RefRes = in ActOnOMPIteratorExpr()
5332 ExprResult UpdateRes; in ActOnOMPIteratorExpr()
5350 ExprResult VDRes = in ActOnOMPIteratorExpr()
5366 ExprResult CounterUpdateRes = in ActOnOMPIteratorExpr()
5399 ExprResult
5420 ExprResult Result = DefaultFunctionArrayLvalueConversion(LHSExp); in CreateBuiltinArraySubscriptExpr()
5425 ExprResult Result = DefaultFunctionArrayLvalueConversion(RHSExp); in CreateBuiltinArraySubscriptExpr()
5479 ExprResult Materialized = TemporaryMaterializationConversion(LHSExp); in CreateBuiltinArraySubscriptExpr()
5647 ExprResult Sema::BuildCXXDefaultArgExpr(SourceLocation CallLoc, in BuildCXXDefaultArgExpr()
5908 ExprResult ArgE = PerformCopyInitialization( in GatherArgumentsForCall()
5917 ExprResult ArgExpr = BuildCXXDefaultArgExpr(CallLoc, FDecl, Param); in GatherArgumentsForCall()
5943 ExprResult arg = checkUnknownAnyArg(CallLoc, A, paramType); in GatherArgumentsForCall()
5951 ExprResult Arg = DefaultVariadicArgumentPromotion(A, CallType, FDecl); in GatherArgumentsForCall()
6036 static ExprResult rebuildUnknownAnyFunction(Sema &S, Expr *fn);
6106 ExprResult result = S.CheckPlaceholderExpr(args[i]); in checkArgsForPlaceholders()
6143 ExprResult ArgRes = in rewriteBuiltinFunctionDecl()
6308 ExprResult Sema::ActOnCallExpr(Scope *Scope, Expr *Fn, SourceLocation LParenLoc, in ActOnCallExpr()
6311 ExprResult Call = in ActOnCallExpr()
6338 ExprResult Sema::BuildCallExpr(Scope *Scope, Expr *Fn, SourceLocation LParenLoc, in BuildCallExpr()
6342 ExprResult Result = MaybeConvertParenListExprToParenExpr(Scope, Fn); in BuildCallExpr()
6364 ExprResult result = CheckPlaceholderExpr(Fn); in BuildCallExpr()
6393 ExprResult result = rebuildUnknownAnyFunction(*this, Fn); in BuildCallExpr()
6425 ExprResult result = rebuildUnknownAnyFunction(*this, Fn); in BuildCallExpr()
6495 ExprResult Sema::ActOnAsTypeExpr(Expr *E, ParsedType ParsedDestTy, in ActOnAsTypeExpr()
6516 ExprResult Sema::ActOnConvertVectorExpr(Expr *E, ParsedType ParsedDestTy, in ActOnConvertVectorExpr()
6530 ExprResult Sema::BuildResolvedCallExpr(Expr *Fn, NamedDecl *NDecl, in BuildResolvedCallExpr()
6558 ExprResult Result; in BuildResolvedCallExpr()
6596 ExprResult rewrite = rebuildUnknownAnyFunction(*this, Fn); in BuildResolvedCallExpr()
6635 ExprResult Result = CorrectDelayedTyposInExpr(TheCall); in BuildResolvedCallExpr()
6726 ExprResult ArgE = in BuildResolvedCallExpr()
6734 ExprResult ArgE = DefaultArgumentPromotion(Arg); in BuildResolvedCallExpr()
6791 ExprResult
6805 ExprResult
6832 ExprResult Result = InitSeq.Perform(*this, Entity, Kind, LiteralExpr, in BuildCompoundLiteralExpr()
6914 ExprResult
6982 ExprResult
6992 ExprResult result = CheckPlaceholderExpr(InitArgList[I]); in BuildInitList()
7009 void Sema::maybeExtendBlockObject(ExprResult &E) { in maybeExtendBlockObject()
7024 CastKind Sema::PrepareCastToObjCObjectPointer(ExprResult &E) { in PrepareCastToObjCObjectPointer()
7039 CastKind Sema::PrepareScalarCast(ExprResult &Src, QualType DestTy) { in PrepareScalarCast()
7369 ExprResult Sema::prepareVectorSplat(QualType VectorTy, Expr *SplattedExpr) { in prepareVectorSplat()
7385 ExprResult CastExprRes = ImpCastExprToType(SplattedExpr, Context.IntTy, in prepareVectorSplat()
7393 ExprResult CastExprRes = SplattedExpr; in prepareVectorSplat()
7402 ExprResult Sema::CheckExtVectorCast(SourceRange R, QualType DestTy, in CheckExtVectorCast()
7436 ExprResult
7452 ExprResult Res = CorrectDelayedTyposInExpr(CastExpr); in ActOnCastExpr()
7493 ExprResult Result = MaybeConvertParenListExprToParenExpr(S, CastExpr); in ActOnCastExpr()
7511 ExprResult Sema::BuildVectorLiteral(SourceLocation LParenLoc, in BuildVectorLiteral()
7551 ExprResult Literal = DefaultLvalueConversion(exprs[0]); in BuildVectorLiteral()
7573 ExprResult Literal = DefaultLvalueConversion(exprs[0]); in BuildVectorLiteral()
7593 ExprResult
7599 ExprResult Result(E->getExpr(0)); in MaybeConvertParenListExprToParenExpr()
7610 ExprResult Sema::ActOnParenListExpr(SourceLocation L, in ActOnParenListExpr()
7677 static QualType checkConditionalVoidType(Sema &S, ExprResult &LHS, in checkConditionalVoidType()
7678 ExprResult &RHS) { in checkConditionalVoidType()
7695 static bool checkConditionalNullPointer(Sema &S, ExprResult &NullExpr, in checkConditionalNullPointer()
7708 static QualType checkConditionalPointerCompatibility(Sema &S, ExprResult &LHS, in checkConditionalPointerCompatibility()
7709 ExprResult &RHS, in checkConditionalPointerCompatibility()
7838 ExprResult &LHS, in checkConditionalBlockPointerCompatibility()
7839 ExprResult &RHS, in checkConditionalBlockPointerCompatibility()
7863 checkConditionalObjectPointersCompatibility(Sema &S, ExprResult &LHS, in checkConditionalObjectPointersCompatibility()
7864 ExprResult &RHS, in checkConditionalObjectPointersCompatibility()
7902 static bool checkPointerIntegerMismatch(Sema &S, ExprResult &Int, in checkPointerIntegerMismatch()
7932 static QualType OpenCLArithmeticConversions(Sema &S, ExprResult &LHS, in OpenCLArithmeticConversions()
7933 ExprResult &RHS, in OpenCLArithmeticConversions()
7987 OpenCLConvertScalarsToVectors(Sema &S, ExprResult &LHS, ExprResult &RHS, in OpenCLConvertScalarsToVectors()
8069 OpenCLCheckVectorConditional(Sema &S, ExprResult &Cond, in OpenCLCheckVectorConditional()
8070 ExprResult &LHS, ExprResult &RHS, in OpenCLCheckVectorConditional()
8115 QualType Sema::CheckConditionalOperands(ExprResult &Cond, ExprResult &LHS, in CheckConditionalOperands()
8116 ExprResult &RHS, ExprValueKind &VK, in CheckConditionalOperands()
8120 ExprResult LHSResult = CheckPlaceholderExpr(LHS.get()); in CheckConditionalOperands()
8124 ExprResult RHSResult = CheckPlaceholderExpr(RHS.get()); in CheckConditionalOperands()
8282 QualType Sema::FindCompositeObjCPointerType(ExprResult &LHS, ExprResult &RHS, in FindCompositeObjCPointerType()
8611 ExprResult Sema::ActOnConditionalOp(SourceLocation QuestionLoc, in ActOnConditionalOp()
8619 ExprResult CondResult = CorrectDelayedTyposInExpr(CondExpr); in ActOnConditionalOp()
8620 ExprResult LHSResult = CorrectDelayedTyposInExpr(LHSExpr); in ActOnConditionalOp()
8621 ExprResult RHSResult = CorrectDelayedTyposInExpr(RHSExpr); in ActOnConditionalOp()
8649 ExprResult result = CheckPlaceholderExpr(commonExpr); in ActOnConditionalOp()
8662 ExprResult commonRes = UsualUnaryConversions(commonExpr); in ActOnConditionalOp()
8672 ExprResult MatExpr = TemporaryMaterializationConversion(commonExpr); in ActOnConditionalOp()
8689 ExprResult Cond = CondExpr, LHS = LHSExpr, RHS = RHSExpr; in ActOnConditionalOp()
8972 ExprResult RHSPtr = &RHSExpr; in CheckAssignmentConstraints()
9004 Sema::CheckAssignmentConstraints(QualType LHSType, ExprResult &RHS, in CheckAssignmentConstraints()
9089 ExprResult *VecExpr = &RHS; in CheckAssignmentConstraints()
9326 ExprResult &EResult, QualType UnionType, in ConstructTransparentUnion()
9345 ExprResult &RHS) { in CheckTransparentUnionArgumentConstraints()
9396 Sema::CheckSingleAssignmentConstraints(QualType LHSType, ExprResult &CallerRHS, in CheckSingleAssignmentConstraints()
9407 ExprResult LocalRHS = CallerRHS; in CheckSingleAssignmentConstraints()
9408 ExprResult &RHS = ConvertRHS ? CallerRHS : LocalRHS; in CheckSingleAssignmentConstraints()
9568 QualType Sema::InvalidOperands(SourceLocation Loc, ExprResult &LHS, in InvalidOperands()
9569 ExprResult &RHS) { in InvalidOperands()
9595 QualType Sema::InvalidLogicalVectorOperands(SourceLocation Loc, ExprResult &LHS, in InvalidLogicalVectorOperands()
9596 ExprResult &RHS) { in InvalidLogicalVectorOperands()
9631 static bool tryVectorConvertAndSplat(Sema &S, ExprResult *scalar, in tryVectorConvertAndSplat()
9678 static ExprResult convertVector(Expr *E, QualType ElementType, Sema &S) { in convertVector()
9697 static bool canConvertIntToOtherIntTy(Sema &S, ExprResult *Int, in canConvertIntToOtherIntTy()
9735 static bool canConvertIntTyToFloatTy(Sema &S, ExprResult *Int, in canConvertIntTyToFloatTy()
9779 static bool tryGCCVectorConvertAndSplat(Sema &S, ExprResult *Scalar, in tryGCCVectorConvertAndSplat()
9780 ExprResult *Vector) { in tryGCCVectorConvertAndSplat()
9867 QualType Sema::CheckVectorOperands(ExprResult &LHS, ExprResult &RHS, in CheckVectorOperands()
10010 ExprResult *OtherExpr = LHSVecType ? &RHS : &LHS; in CheckVectorOperands()
10025 ExprResult *RHSExpr = &RHS; in CheckVectorOperands()
10080 static void checkArithmeticNull(Sema &S, ExprResult &LHS, ExprResult &RHS, in checkArithmeticNull()
10164 static void DiagnoseBadDivideOrRemainderValues(Sema& S, ExprResult &LHS, in DiagnoseBadDivideOrRemainderValues()
10165 ExprResult &RHS, in DiagnoseBadDivideOrRemainderValues()
10177 QualType Sema::CheckMultiplyDivideOperands(ExprResult &LHS, ExprResult &RHS, in CheckMultiplyDivideOperands()
10207 ExprResult &LHS, ExprResult &RHS, SourceLocation Loc, bool IsCompAssign) { in CheckRemainderOperands()
10494 QualType Sema::CheckAdditionOperands(ExprResult &LHS, ExprResult &RHS, in CheckAdditionOperands()
10594 QualType Sema::CheckSubtractionOperands(ExprResult &LHS, ExprResult &RHS, in CheckSubtractionOperands()
10716 static void DiagnoseBadShiftValues(Sema& S, ExprResult &LHS, ExprResult &RHS, in DiagnoseBadShiftValues()
10812 static QualType checkVectorShift(Sema &S, ExprResult &LHS, ExprResult &RHS, in checkVectorShift()
10898 QualType Sema::CheckShiftOperands(ExprResult &LHS, ExprResult &RHS, in CheckShiftOperands()
10925 ExprResult OldLHS = LHS; in CheckShiftOperands()
10960 ExprResult &LHS, ExprResult &RHS, in diagnoseDistinctPointerComparison()
10971 ExprResult &LHS, ExprResult &RHS) { in convertPointersToCompositeType()
11000 ExprResult &LHS, in diagnoseFunctionPointerToVoidComparison()
11001 ExprResult &RHS, in diagnoseFunctionPointerToVoidComparison()
11009 static bool isObjCObjectLiteral(ExprResult &E) { in isObjCObjectLiteral()
11111 ExprResult &LHS, ExprResult &RHS, in diagnoseObjCLiteralComparison()
11160 static void diagnoseLogicalNotOnLHSofCheck(Sema &S, ExprResult &LHS, in diagnoseLogicalNotOnLHSofCheck()
11161 ExprResult &RHS, SourceLocation Loc, in diagnoseLogicalNotOnLHSofCheck()
11424 ExprResult &LHS, in checkArithmeticOrEnumeralThreeWayCompare()
11425 ExprResult &RHS, in checkArithmeticOrEnumeralThreeWayCompare()
11432 ExprResult LHSStripped = LHS.get()->IgnoreParenImpCasts(); in checkArithmeticOrEnumeralThreeWayCompare()
11433 ExprResult RHSStripped = RHS.get()->IgnoreParenImpCasts(); in checkArithmeticOrEnumeralThreeWayCompare()
11505 static QualType checkArithmeticOrEnumeralCompare(Sema &S, ExprResult &LHS, in checkArithmeticOrEnumeralCompare()
11506 ExprResult &RHS, in checkArithmeticOrEnumeralCompare()
11532 void Sema::CheckPtrComparisonWithNullChar(ExprResult &E, ExprResult &NullE) { in CheckPtrComparisonWithNullChar()
11559 QualType Sema::CheckCompareOperands(ExprResult &LHS, ExprResult &RHS, in CheckCompareOperands()
11565 auto IsAnyPointerType = [](ExprResult E) { in CheckCompareOperands()
12051 QualType Sema::CheckVectorCompareOperands(ExprResult &LHS, ExprResult &RHS, in CheckVectorCompareOperands()
12091 static void diagnoseXorMisusedAsPow(Sema &S, const ExprResult &XorLHS, in diagnoseXorMisusedAsPow()
12092 const ExprResult &XorRHS, in diagnoseXorMisusedAsPow()
12205 QualType Sema::CheckVectorLogicalOperands(ExprResult &LHS, ExprResult &RHS, in CheckVectorLogicalOperands()
12227 QualType Sema::CheckMatrixElementwiseOperands(ExprResult &LHS, ExprResult &RHS, in CheckMatrixElementwiseOperands()
12253 ExprResult OriginalLHS = LHS; in CheckMatrixElementwiseOperands()
12254 ExprResult OriginalRHS = RHS; in CheckMatrixElementwiseOperands()
12273 QualType Sema::CheckMatrixMultiplyOperands(ExprResult &LHS, ExprResult &RHS, in CheckMatrixMultiplyOperands()
12304 inline QualType Sema::CheckBitwiseOperands(ExprResult &LHS, ExprResult &RHS, in CheckBitwiseOperands()
12329 ExprResult LHSResult = LHS, RHSResult = RHS; in CheckBitwiseOperands()
12346 inline QualType Sema::CheckLogicalOperands(ExprResult &LHS, ExprResult &RHS, in CheckLogicalOperands()
12354 for (const ExprResult &HS : {LHS, RHS}) { in CheckLogicalOperands()
12433 ExprResult LHSRes = PerformContextuallyConvertToBool(LHS.get()); in CheckLogicalOperands()
12438 ExprResult RHSRes = PerformContextuallyConvertToBool(RHS.get()); in CheckLogicalOperands()
12883 QualType Sema::CheckAssignmentOperands(Expr *LHSExpr, ExprResult &RHS, in CheckAssignmentOperands()
13086 static QualType CheckCommaOperands(Sema &S, ExprResult &LHS, ExprResult &RHS, in CheckCommaOperands()
13170 ExprResult PR = S.CheckPlaceholderExpr(Op); in CheckIncrementDecrementOperand()
13299 QualType Sema::CheckAddressOfOperand(ExprResult &OrigOp, SourceLocation OpLoc) { in CheckAddressOfOperand()
13542 ExprResult ConvResult = S.UsualUnaryConversions(Op); in CheckIndirectionOperand()
13563 ExprResult PR = S.CheckPlaceholderExpr(Op); in CheckIndirectionOperand()
13697 static void checkObjCPointerIntrospection(Sema &S, ExprResult &L, ExprResult &R, in checkObjCPointerIntrospection()
13753 static ExprResult convertHalfVecBinOp(Sema &S, ExprResult LHS, ExprResult RHS, in convertHalfVecBinOp()
13785 static std::pair<ExprResult, ExprResult>
13788 ExprResult LHS = LHSExpr, RHS = RHSExpr; in CorrectDelayedTyposInBinOp()
13798 return ExprResult(E); in CorrectDelayedTyposInBinOp()
13836 ExprResult Sema::CreateBuiltinBinOp(SourceLocation OpLoc, in CreateBuiltinBinOp()
13851 ExprResult Init = InitSeq.Perform(*this, Entity, Kind, RHSExpr); in CreateBuiltinBinOp()
13857 ExprResult LHS = LHSExpr, RHS = RHSExpr; in CreateBuiltinBinOp()
14314 ExprResult Sema::ActOnBinOp(Scope *S, SourceLocation TokLoc, in ActOnBinOp()
14341 static ExprResult BuildOverloadedBinOp(Sema &S, Scope *Sc, SourceLocation OpLoc, in BuildOverloadedBinOp()
14368 ExprResult Sema::BuildBinOp(Scope *S, SourceLocation OpLoc, in BuildBinOp()
14371 ExprResult LHS, RHS; in BuildBinOp()
14398 ExprResult resolvedRHS = CheckPlaceholderExpr(RHSExpr); in BuildBinOp()
14429 ExprResult LHS = CheckPlaceholderExpr(LHSExpr); in BuildBinOp()
14452 ExprResult resolvedRHS = CheckPlaceholderExpr(RHSExpr); in BuildBinOp()
14525 ExprResult Sema::CreateBuiltinUnaryOp(SourceLocation OpLoc, in CreateBuiltinUnaryOp()
14528 ExprResult Input = InputExpr; in CreateBuiltinUnaryOp()
14788 ExprResult Sema::BuildUnaryOp(Scope *S, SourceLocation OpLoc, in BuildUnaryOp()
14811 ExprResult Result = CheckPlaceholderExpr(Input); in BuildUnaryOp()
14832 ExprResult Sema::ActOnUnaryOp(Scope *S, SourceLocation OpLoc, in ActOnUnaryOp()
14838 ExprResult Sema::ActOnAddrLabel(SourceLocation OpLoc, SourceLocation LabLoc, in ActOnAddrLabel()
14858 ExprResult Sema::ActOnStmtExpr(Scope *S, SourceLocation LPLoc, Stmt *SubStmt, in ActOnStmtExpr()
14863 ExprResult Sema::BuildStmtExpr(SourceLocation LPLoc, Stmt *SubStmt, in BuildStmtExpr()
14902 ExprResult Sema::ActOnStmtExprResult(ExprResult ER) { in ActOnStmtExprResult()
14933 ExprResult Sema::BuildBuiltinOffsetOf(SourceLocation BuiltinLoc, in BuildBuiltinOffsetOf()
14971 ExprResult IdxRval = DefaultLvalueConversion(static_cast<Expr*>(OC.U.E)); in BuildBuiltinOffsetOf()
15096 ExprResult Sema::ActOnBuiltinOffsetOf(Scope *S, in ActOnBuiltinOffsetOf()
15115 ExprResult Sema::ActOnChooseExpr(SourceLocation BuiltinLoc, in ActOnChooseExpr()
15130 ExprResult CondICE = VerifyIntegerConstantExpression( in ActOnChooseExpr()
15313 ExprResult Sema::ActOnBlockStmtExpr(SourceLocation CaretLoc, in ActOnBlockStmtExpr()
15434 ExprResult Result = BuildDeclarationNameExpr( in ActOnBlockStmtExpr()
15498 ExprResult Sema::ActOnVAArg(SourceLocation BuiltinLoc, Expr *E, ParsedType Ty, in ActOnVAArg()
15505 ExprResult Sema::BuildVAArgExpr(SourceLocation BuiltinLoc, in BuildVAArgExpr()
15547 ExprResult Result = UsualUnaryConversions(E); in BuildVAArgExpr()
15556 ExprResult Init = PerformCopyInitialization(Entity, SourceLocation(), E); in BuildVAArgExpr()
15619 ExprResult Sema::ActOnGNUNullExpr(SourceLocation TokenLoc) { in ActOnGNUNullExpr()
15637 ExprResult Sema::ActOnSourceLocExpr(SourceLocExpr::IdentKind Kind, in ActOnSourceLocExpr()
15643 ExprResult Sema::BuildSourceLocExpr(SourceLocExpr::IdentKind Kind, in BuildSourceLocExpr()
15992 ExprResult Sema::VerifyIntegerConstantExpression(Expr *E, in VerifyIntegerConstantExpression()
16010 ExprResult Sema::VerifyIntegerConstantExpression(Expr *E, in VerifyIntegerConstantExpression()
16040 ExprResult
16052 ExprResult Converted; in VerifyIntegerConstantExpression()
16114 ExprResult RValueExpr = DefaultLvalueConversion(E); in VerifyIntegerConstantExpression()
16200 ExprResult TransformDeclRefExpr(DeclRefExpr *E) { in TransformDeclRefExpr()
16211 ExprResult TransformUnaryOperator(UnaryOperator *E) { in TransformUnaryOperator()
16228 ExprResult Sema::TransformToPotentiallyEvaluated(Expr *E) { in TransformToPotentiallyEvaluated()
16322 ExprResult Sema::CheckForImmediateInvocation(ExprResult E, FunctionDecl *Decl) { in CheckForImmediateInvocation()
16399 ExprResult TransformConstantExpr(ConstantExpr *E) { in RemoveNestedImmediateInvocation()
16407 ExprResult TransformCXXOperatorCallExpr(CXXOperatorCallExpr *E) { in RemoveNestedImmediateInvocation()
16413 ExprResult TransformInitializer(Expr *Init, bool NotCopyInit) { in RemoveNestedImmediateInvocation()
16423 ExprResult TransformDeclRefExpr(DeclRefExpr *E) { in RemoveNestedImmediateInvocation()
16447 ExprResult Res = Transformer.TransformExpr(It->getPointer()->getSubExpr()); in RemoveNestedImmediateInvocation()
16576 ExprResult Sema::HandleExprEvaluationContextForTypeof(Expr *E) { in HandleExprEvaluationContextForTypeof()
16577 ExprResult Result = CheckPlaceholderExpr(E); in HandleExprEvaluationContextForTypeof()
17688 static ExprResult rebuildPotentialResultsAsNonOdrUsed(Sema &S, Expr *E, in rebuildPotentialResultsAsNonOdrUsed()
17802 ExprResult Base = Rebuild(OldBase); in rebuildPotentialResultsAsNonOdrUsed()
17817 ExprResult Base = Rebuild(ME->getBase()); in rebuildPotentialResultsAsNonOdrUsed()
17852 ExprResult Sub = Rebuild(LHS); in rebuildPotentialResultsAsNonOdrUsed()
17858 ExprResult Sub = Rebuild(RHS); in rebuildPotentialResultsAsNonOdrUsed()
17872 ExprResult Sub = Rebuild(PE->getSubExpr()); in rebuildPotentialResultsAsNonOdrUsed()
17882 ExprResult LHS = Rebuild(CO->getLHS()); in rebuildPotentialResultsAsNonOdrUsed()
17885 ExprResult RHS = Rebuild(CO->getRHS()); in rebuildPotentialResultsAsNonOdrUsed()
17904 ExprResult Sub = Rebuild(UO->getSubExpr()); in rebuildPotentialResultsAsNonOdrUsed()
17920 ExprResult AssocExpr = Rebuild(OrigAssocExpr); in rebuildPotentialResultsAsNonOdrUsed()
17945 ExprResult LHS = Rebuild(CE->getLHS()); in rebuildPotentialResultsAsNonOdrUsed()
17949 ExprResult RHS = Rebuild(CE->getLHS()); in rebuildPotentialResultsAsNonOdrUsed()
17967 ExprResult Sub = Rebuild(CE->getSubExpr()); in rebuildPotentialResultsAsNonOdrUsed()
17984 ExprResult Sub = Rebuild(ICE->getSubExpr()); in rebuildPotentialResultsAsNonOdrUsed()
18006 ExprResult Sema::CheckLValueToRValueConversionOperand(Expr *E) { in CheckLValueToRValueConversionOperand()
18022 ExprResult Result = in CheckLValueToRValueConversionOperand()
18029 ExprResult Sema::ActOnConstantExpression(ExprResult Res) { in ActOnConstantExpression()
18642 ExprResult Sema::CheckBooleanCondition(SourceLocation Loc, Expr *E, in CheckBooleanCondition()
18648 ExprResult result = CheckPlaceholderExpr(E); in CheckBooleanCondition()
18656 ExprResult ERes = DefaultFunctionArrayLvalueConversion(E); in CheckBooleanCondition()
18679 ExprResult Cond; in ActOnCondition()
18712 : StmtVisitor<RebuildUnknownAnyFunction, ExprResult> {
18718 ExprResult VisitStmt(Stmt *S) { in VisitStmt()
18722 ExprResult VisitExpr(Expr *E) { in VisitExpr()
18730 template <class T> ExprResult rebuildSugarExpr(T *E) { in rebuildSugarExpr()
18731 ExprResult SubResult = Visit(E->getSubExpr()); in rebuildSugarExpr()
18742 ExprResult VisitParenExpr(ParenExpr *E) { in VisitParenExpr()
18746 ExprResult VisitUnaryExtension(UnaryOperator *E) { in VisitUnaryExtension()
18750 ExprResult VisitUnaryAddrOf(UnaryOperator *E) { in VisitUnaryAddrOf()
18751 ExprResult SubResult = Visit(E->getSubExpr()); in VisitUnaryAddrOf()
18762 ExprResult resolveDecl(Expr *E, ValueDecl *VD) { in resolveDecl()
18776 ExprResult VisitMemberExpr(MemberExpr *E) { in VisitMemberExpr()
18780 ExprResult VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
18788 static ExprResult rebuildUnknownAnyFunction(Sema &S, Expr *FunctionExpr) { in rebuildUnknownAnyFunction()
18789 ExprResult Result = RebuildUnknownAnyFunction(S).Visit(FunctionExpr); in rebuildUnknownAnyFunction()
18800 : StmtVisitor<RebuildUnknownAnyExpr, ExprResult> {
18810 ExprResult VisitStmt(Stmt *S) { in VisitStmt()
18814 ExprResult VisitExpr(Expr *E) { in VisitExpr()
18820 ExprResult VisitCallExpr(CallExpr *E);
18821 ExprResult VisitObjCMessageExpr(ObjCMessageExpr *E);
18825 template <class T> ExprResult rebuildSugarExpr(T *E) { in rebuildSugarExpr()
18826 ExprResult SubResult = Visit(E->getSubExpr()); in rebuildSugarExpr()
18836 ExprResult VisitParenExpr(ParenExpr *E) { in VisitParenExpr()
18840 ExprResult VisitUnaryExtension(UnaryOperator *E) { in VisitUnaryExtension()
18844 ExprResult VisitUnaryAddrOf(UnaryOperator *E) { in VisitUnaryAddrOf()
18864 ExprResult SubResult = Visit(E->getSubExpr()); in VisitUnaryAddrOf()
18870 ExprResult VisitImplicitCastExpr(ImplicitCastExpr *E);
18872 ExprResult resolveDecl(Expr *E, ValueDecl *VD);
18874 ExprResult VisitMemberExpr(MemberExpr *E) { in VisitMemberExpr()
18878 ExprResult VisitDeclRefExpr(DeclRefExpr *E) { in VisitDeclRefExpr()
18885 ExprResult RebuildUnknownAnyExpr::VisitCallExpr(CallExpr *E) { in VisitCallExpr()
18986 ExprResult CalleeResult = Visit(CalleeExpr); in VisitCallExpr()
18994 ExprResult RebuildUnknownAnyExpr::VisitObjCMessageExpr(ObjCMessageExpr *E) { in VisitObjCMessageExpr()
19015 ExprResult RebuildUnknownAnyExpr::VisitImplicitCastExpr(ImplicitCastExpr *E) { in VisitImplicitCastExpr()
19026 ExprResult Result = Visit(E->getSubExpr()); in VisitImplicitCastExpr()
19042 ExprResult Result = Visit(E->getSubExpr()); in VisitImplicitCastExpr()
19052 ExprResult RebuildUnknownAnyExpr::resolveDecl(Expr *E, ValueDecl *VD) { in resolveDecl()
19062 ExprResult Result = resolveDecl(E, VD); in resolveDecl()
19142 ExprResult Sema::checkUnknownAnyCast(SourceRange TypeRange, QualType CastType, in checkUnknownAnyCast()
19152 ExprResult result = RebuildUnknownAnyExpr(*this, CastType).Visit(CastExpr); in checkUnknownAnyCast()
19162 ExprResult Sema::forceUnknownAnyToType(Expr *E, QualType ToType) { in forceUnknownAnyToType()
19166 ExprResult Sema::checkUnknownAnyArg(SourceLocation callLoc, in checkUnknownAnyArg()
19172 ExprResult result = DefaultArgumentPromotion(arg); in checkUnknownAnyArg()
19189 static ExprResult diagnoseUnknownAnyExpr(Sema &S, Expr *E) { in diagnoseUnknownAnyExpr()
19234 ExprResult Sema::CheckPlaceholderExpr(Expr *E) { in CheckPlaceholderExpr()
19239 ExprResult Result = CorrectDelayedTyposInExpr(E); in CheckPlaceholderExpr()
19253 ExprResult Result = E; in CheckPlaceholderExpr()
19271 ExprResult result = E; in CheckPlaceholderExpr()
19371 ExprResult
19391 ExprResult Sema::ActOnObjCAvailabilityCheckExpr( in ActOnObjCAvailabilityCheckExpr()
19416 ExprResult Sema::CreateRecoveryExpr(SourceLocation Begin, SourceLocation End, in CreateRecoveryExpr()