@@ -2199,8 +2199,8 @@ ExprResult Sema::BuildCXXNew(SourceRange Range, bool UseGlobal,
21992199 if (getLangOpts ().CPlusPlus14 ) {
22002200 assert (Context.getTargetInfo ().getIntWidth () && " Builtin type of size 0?" );
22012201
2202- ConvertedSize = PerformImplicitConversion (*ArraySize, Context. getSizeType (),
2203- AA_Converting);
2202+ ConvertedSize = PerformImplicitConversion (
2203+ *ArraySize, Context. getSizeType (), AssignmentAction:: AA_Converting);
22042204
22052205 if (!ConvertedSize.isInvalid () &&
22062206 (*ArraySize)->getType ()->getAs <RecordType>())
@@ -3851,7 +3851,8 @@ Sema::ActOnCXXDelete(SourceLocation StartLoc, bool UseGlobal,
38513851 Context.getQualifiedType (Pointee.getUnqualifiedType (), Qs));
38523852 Ex = ImpCastExprToType (Ex.get (), Unqual, CK_NoOp);
38533853 }
3854- Ex = PerformImplicitConversion (Ex.get (), ParamType, AA_Passing);
3854+ Ex = PerformImplicitConversion (Ex.get (), ParamType,
3855+ AssignmentAction::AA_Passing);
38553856 if (Ex.isInvalid ())
38563857 return ExprError ();
38573858 }
@@ -4256,10 +4257,9 @@ Sema::PerformImplicitConversion(Expr *From, QualType ToType,
42564257 }
42574258 // Watch out for ellipsis conversion.
42584259 if (!ICS.UserDefined .EllipsisConversion ) {
4259- ExprResult Res =
4260- PerformImplicitConversion (From, BeforeToType,
4261- ICS.UserDefined .Before , AA_Converting,
4262- CCK);
4260+ ExprResult Res = PerformImplicitConversion (
4261+ From, BeforeToType, ICS.UserDefined .Before ,
4262+ AssignmentAction::AA_Converting, CCK);
42634263 if (Res.isInvalid ())
42644264 return ExprError ();
42654265 From = Res.get ();
@@ -4282,7 +4282,7 @@ Sema::PerformImplicitConversion(Expr *From, QualType ToType,
42824282 return From;
42834283
42844284 return PerformImplicitConversion (From, ToType, ICS.UserDefined .After ,
4285- AA_Converting, CCK);
4285+ AssignmentAction:: AA_Converting, CCK);
42864286 }
42874287
42884288 case ImplicitConversionSequence::AmbiguousConversion:
@@ -4451,19 +4451,19 @@ Sema::PerformImplicitConversion(Expr *From, QualType ToType,
44514451 // target entity shall allow at least the exceptions allowed by the
44524452 // source value in the assignment or initialization.
44534453 switch (Action) {
4454- case AA_Assigning:
4455- case AA_Initializing:
4454+ case AssignmentAction:: AA_Assigning:
4455+ case AssignmentAction:: AA_Initializing:
44564456 // Note, function argument passing and returning are initialization.
4457- case AA_Passing:
4458- case AA_Returning:
4459- case AA_Sending:
4460- case AA_Passing_CFAudited:
4457+ case AssignmentAction:: AA_Passing:
4458+ case AssignmentAction:: AA_Returning:
4459+ case AssignmentAction:: AA_Sending:
4460+ case AssignmentAction:: AA_Passing_CFAudited:
44614461 if (CheckExceptionSpecCompatibility (From, ToType))
44624462 return ExprError ();
44634463 break ;
44644464
4465- case AA_Casting:
4466- case AA_Converting:
4465+ case AssignmentAction:: AA_Casting:
4466+ case AssignmentAction:: AA_Converting:
44674467 // Casts and implicit conversions are not initialization, so are not
44684468 // checked for exception specification mismatches.
44694469 break ;
@@ -4577,9 +4577,10 @@ Sema::PerformImplicitConversion(Expr *From, QualType ToType,
45774577
45784578 case ICK_Writeback_Conversion:
45794579 case ICK_Pointer_Conversion: {
4580- if (SCS.IncompatibleObjC && Action != AA_Casting) {
4580+ if (SCS.IncompatibleObjC && Action != AssignmentAction:: AA_Casting) {
45814581 // Diagnose incompatible Objective-C conversions
4582- if (Action == AA_Initializing || Action == AA_Assigning)
4582+ if (Action == AssignmentAction::AA_Initializing ||
4583+ Action == AssignmentAction::AA_Assigning)
45834584 Diag (From->getBeginLoc (),
45844585 diag::ext_typecheck_convert_incompatible_pointer)
45854586 << ToType << From->getType () << Action << From->getSourceRange ()
@@ -4596,12 +4597,12 @@ Sema::PerformImplicitConversion(Expr *From, QualType ToType,
45964597 } else if (getLangOpts ().allowsNonTrivialObjCLifetimeQualifiers () &&
45974598 !ObjC ().CheckObjCARCUnavailableWeakConversion (ToType,
45984599 From->getType ())) {
4599- if (Action == AA_Initializing)
4600+ if (Action == AssignmentAction:: AA_Initializing)
46004601 Diag (From->getBeginLoc (), diag::err_arc_weak_unavailable_assign);
46014602 else
46024603 Diag (From->getBeginLoc (), diag::err_arc_convesion_of_weak_unavailable)
4603- << (Action == AA_Casting) << From->getType () << ToType
4604- << From->getSourceRange ();
4604+ << (Action == AssignmentAction:: AA_Casting) << From->getType ()
4605+ << ToType << From->getSourceRange ();
46054606 }
46064607
46074608 // Defer address space conversion to the third conversion.
@@ -6666,14 +6667,14 @@ static bool FindConditionalOverload(Sema &Self, ExprResult &LHS, ExprResult &RHS
66666667 // We found a match. Perform the conversions on the arguments and move on.
66676668 ExprResult LHSRes = Self.PerformImplicitConversion (
66686669 LHS.get (), Best->BuiltinParamTypes [0 ], Best->Conversions [0 ],
6669- Sema ::AA_Converting);
6670+ AssignmentAction ::AA_Converting);
66706671 if (LHSRes.isInvalid ())
66716672 break ;
66726673 LHS = LHSRes;
66736674
66746675 ExprResult RHSRes = Self.PerformImplicitConversion (
66756676 RHS.get (), Best->BuiltinParamTypes [1 ], Best->Conversions [1 ],
6676- Sema ::AA_Converting);
6677+ AssignmentAction ::AA_Converting);
66776678 if (RHSRes.isInvalid ())
66786679 break ;
66796680 RHS = RHSRes;
0 commit comments