forked from OSchip/llvm-project
parent
954bd598dd
commit
e81335c85b
|
@ -1064,7 +1064,6 @@ public:
|
|||
TryImplicitConversion(Expr* From, QualType ToType,
|
||||
bool SuppressUserConversions,
|
||||
bool AllowExplicit,
|
||||
bool ForceRValue,
|
||||
bool InOverloadResolution,
|
||||
bool UserCast = false);
|
||||
bool IsStandardConversion(Expr *From, QualType ToType,
|
||||
|
|
|
@ -961,7 +961,6 @@ TryStaticImplicitCast(Sema &Self, Expr *&SrcExpr, QualType DestType,
|
|||
Self.TryImplicitConversion(SrcExpr, DestType,
|
||||
/*SuppressUserConversions=*/false,
|
||||
/*AllowExplicit=*/true,
|
||||
/*ForceRValue=*/false,
|
||||
/*InOverloadResolution=*/false,
|
||||
/*one of user provided casts*/true);
|
||||
|
||||
|
|
|
@ -1494,7 +1494,6 @@ Sema::PerformImplicitConversion(Expr *&From, QualType ToType,
|
|||
ICS = TryImplicitConversion(From, ToType,
|
||||
/*SuppressUserConversions=*/false,
|
||||
AllowExplicit,
|
||||
/*ForceRValue=*/false,
|
||||
/*InOverloadResolution=*/false);
|
||||
return PerformImplicitConversion(From, ToType, ICS, Action);
|
||||
}
|
||||
|
@ -2369,13 +2368,11 @@ QualType Sema::FindCompositePointerType(Expr *&E1, Expr *&E2,
|
|||
TryImplicitConversion(E1, Composite1,
|
||||
/*SuppressUserConversions=*/false,
|
||||
/*AllowExplicit=*/false,
|
||||
/*ForceRValue=*/false,
|
||||
/*InOverloadResolution=*/false);
|
||||
ImplicitConversionSequence E2ToC1 =
|
||||
TryImplicitConversion(E2, Composite1,
|
||||
/*SuppressUserConversions=*/false,
|
||||
/*AllowExplicit=*/false,
|
||||
/*ForceRValue=*/false,
|
||||
/*InOverloadResolution=*/false);
|
||||
|
||||
bool ToC2Viable = false;
|
||||
|
@ -2385,12 +2382,10 @@ QualType Sema::FindCompositePointerType(Expr *&E1, Expr *&E2,
|
|||
E1ToC2 = TryImplicitConversion(E1, Composite2,
|
||||
/*SuppressUserConversions=*/false,
|
||||
/*AllowExplicit=*/false,
|
||||
/*ForceRValue=*/false,
|
||||
/*InOverloadResolution=*/false);
|
||||
E2ToC2 = TryImplicitConversion(E2, Composite2,
|
||||
/*SuppressUserConversions=*/false,
|
||||
/*AllowExplicit=*/false,
|
||||
/*ForceRValue=*/false,
|
||||
/*InOverloadResolution=*/false);
|
||||
ToC2Viable = !E1ToC2.isBad() && !E2ToC2.isBad();
|
||||
}
|
||||
|
|
|
@ -2527,7 +2527,6 @@ static void TryReferenceInitialization(Sema &S,
|
|||
ImplicitConversionSequence ICS
|
||||
= S.TryImplicitConversion(Initializer, cv1T1,
|
||||
/*SuppressUserConversions=*/false, AllowExplicit,
|
||||
/*ForceRValue=*/false,
|
||||
/*FIXME:InOverloadResolution=*/false,
|
||||
/*UserCast=*/Kind.isExplicitCast());
|
||||
|
||||
|
@ -2888,7 +2887,6 @@ static void TryImplicitConversion(Sema &S,
|
|||
= S.TryImplicitConversion(Initializer, Entity.getType(),
|
||||
/*SuppressUserConversions=*/true,
|
||||
/*AllowExplicit=*/false,
|
||||
/*ForceRValue=*/false,
|
||||
/*FIXME:InOverloadResolution=*/false,
|
||||
/*UserCast=*/Kind.isExplicitCast());
|
||||
|
||||
|
|
|
@ -436,14 +436,12 @@ bool Sema::IsOverload(FunctionDecl *New, FunctionDecl *Old) {
|
|||
/// not permitted.
|
||||
/// If @p AllowExplicit, then explicit user-defined conversions are
|
||||
/// permitted.
|
||||
/// If @p ForceRValue, then overloading is performed as if From was an rvalue,
|
||||
/// no matter its actual lvalueness.
|
||||
/// If @p UserCast, the implicit conversion is being done for a user-specified
|
||||
/// cast.
|
||||
ImplicitConversionSequence
|
||||
Sema::TryImplicitConversion(Expr* From, QualType ToType,
|
||||
bool SuppressUserConversions,
|
||||
bool AllowExplicit, bool ForceRValue,
|
||||
bool AllowExplicit,
|
||||
bool InOverloadResolution,
|
||||
bool UserCast) {
|
||||
ImplicitConversionSequence ICS;
|
||||
|
@ -2483,7 +2481,6 @@ TryReferenceInit(Sema &S, Expr *&Init, QualType DeclType,
|
|||
// and does not constitute a conversion.
|
||||
ICS = S.TryImplicitConversion(Init, T1, SuppressUserConversions,
|
||||
/*AllowExplicit=*/false,
|
||||
/*ForceRValue=*/false,
|
||||
/*InOverloadResolution=*/false);
|
||||
|
||||
// Of course, that's still a reference binding.
|
||||
|
@ -2502,8 +2499,7 @@ TryReferenceInit(Sema &S, Expr *&Init, QualType DeclType,
|
|||
/// sequence required to pass this argument, which may be a bad
|
||||
/// conversion sequence (meaning that the argument cannot be passed to
|
||||
/// a parameter of this type). If @p SuppressUserConversions, then we
|
||||
/// do not permit any user-defined conversion sequences. If @p ForceRValue,
|
||||
/// then we treat @p From as an rvalue, even if it is an lvalue.
|
||||
/// do not permit any user-defined conversion sequences.
|
||||
static ImplicitConversionSequence
|
||||
TryCopyInitialization(Sema &S, Expr *From, QualType ToType,
|
||||
bool SuppressUserConversions,
|
||||
|
@ -2517,7 +2513,6 @@ TryCopyInitialization(Sema &S, Expr *From, QualType ToType,
|
|||
return S.TryImplicitConversion(From, ToType,
|
||||
SuppressUserConversions,
|
||||
/*AllowExplicit=*/false,
|
||||
/*ForceRValue=*/false,
|
||||
InOverloadResolution);
|
||||
}
|
||||
|
||||
|
@ -2638,7 +2633,6 @@ ImplicitConversionSequence Sema::TryContextuallyConvertToBool(Expr *From) {
|
|||
// FIXME: Are these flags correct?
|
||||
/*SuppressUserConversions=*/false,
|
||||
/*AllowExplicit=*/true,
|
||||
/*ForceRValue=*/false,
|
||||
/*InOverloadResolution=*/false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue