@@ -9749,7 +9749,8 @@ bool InitializationSequence::Diagnose(Sema &S,
9749
9749
break ;
9750
9750
9751
9751
case OR_No_Viable_Function: {
9752
- auto Cands = FailedCandidateSet.CompleteCandidates (S, OCD_AllCandidates, Args);
9752
+ auto Cands =
9753
+ FailedCandidateSet.CompleteCandidates (S, OCD_AllCandidates, Args);
9753
9754
if (!S.RequireCompleteType (Kind.getLocation (),
9754
9755
DestType.getNonReferenceType (),
9755
9756
diag::err_typecheck_nonviable_condition_incomplete,
@@ -9764,8 +9765,8 @@ bool InitializationSequence::Diagnose(Sema &S,
9764
9765
}
9765
9766
case OR_Deleted: {
9766
9767
OverloadCandidateSet::iterator Best;
9767
- OverloadingResult Ovl
9768
- = FailedCandidateSet.BestViableFunction (S, Kind.getLocation (), Best);
9768
+ OverloadingResult Ovl =
9769
+ FailedCandidateSet.BestViableFunction (S, Kind.getLocation (), Best);
9769
9770
9770
9771
StringLiteral *Msg = Best->Function ->getDeletedMessage ();
9771
9772
S.Diag (Kind.getLocation (), diag::err_typecheck_deleted_function)
@@ -10013,8 +10014,8 @@ bool InitializationSequence::Diagnose(Sema &S,
10013
10014
10014
10015
case OR_Deleted: {
10015
10016
OverloadCandidateSet::iterator Best;
10016
- OverloadingResult Ovl
10017
- = FailedCandidateSet.BestViableFunction (S, Kind.getLocation (), Best);
10017
+ OverloadingResult Ovl =
10018
+ FailedCandidateSet.BestViableFunction (S, Kind.getLocation (), Best);
10018
10019
if (Ovl != OR_Deleted) {
10019
10020
S.Diag (Kind.getLocation (), diag::err_ovl_deleted_init)
10020
10021
<< DestType << ArgsRange;
@@ -10093,8 +10094,8 @@ bool InitializationSequence::Diagnose(Sema &S,
10093
10094
S.Diag (Kind.getLocation (), diag::err_selected_explicit_constructor)
10094
10095
<< Args[0 ]->getSourceRange ();
10095
10096
OverloadCandidateSet::iterator Best;
10096
- OverloadingResult Ovl
10097
- = FailedCandidateSet.BestViableFunction (S, Kind.getLocation (), Best);
10097
+ OverloadingResult Ovl =
10098
+ FailedCandidateSet.BestViableFunction (S, Kind.getLocation (), Best);
10098
10099
(void )Ovl;
10099
10100
assert (Ovl == OR_Success && " Inconsistent overload resolution" );
10100
10101
CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function );
0 commit comments