@@ -549,7 +549,7 @@ static bool calculateConstraintSatisfaction(
549
549
if (!NumExpansions)
550
550
return false ;
551
551
552
- if (*NumExpansions == 0 ) {
552
+ if (*NumExpansions == 0 ) {
553
553
Satisfaction.IsSatisfied = Conjunction;
554
554
return true ;
555
555
}
@@ -566,7 +566,8 @@ static bool calculateConstraintSatisfaction(
566
566
if (!Success && Conjunction)
567
567
return false ;
568
568
if (!Conjunction && Satisfaction.IsSatisfied ) {
569
- Satisfaction.Details .erase (Satisfaction.Details .begin () + EffectiveDetailEndIndex,
569
+ Satisfaction.Details .erase (Satisfaction.Details .begin () +
570
+ EffectiveDetailEndIndex,
570
571
Satisfaction.Details .end ());
571
572
break ;
572
573
}
@@ -664,19 +665,22 @@ static bool calculateConstraintSatisfaction(
664
665
665
666
auto EffectiveDetailEndIndex = Satisfaction.Details .size ();
666
667
667
- bool Conjunction = Constraint.getCompoundKind () == NormalizedConstraint::CCK_Conjunction;
668
+ bool Conjunction =
669
+ Constraint.getCompoundKind () == NormalizedConstraint::CCK_Conjunction;
668
670
669
671
bool Ok = calculateConstraintSatisfaction (
670
672
S, Constraint.getLHS (), Template, TemplateNameLoc, MLTAL, Satisfaction,
671
673
PackSubstitutionIndex);
672
674
673
- if (Conjunction && !Ok)
675
+ if (Conjunction && !Ok)
674
676
return false ;
675
677
676
- if (!Conjunction && Ok && Satisfaction.IsSatisfied && !Satisfaction.ContainsErrors )
678
+ if (!Conjunction && Ok && Satisfaction.IsSatisfied &&
679
+ !Satisfaction.ContainsErrors )
677
680
return true ;
678
681
679
- if (Conjunction && Ok && (!Satisfaction.IsSatisfied || Satisfaction.ContainsErrors ))
682
+ if (Conjunction && Ok &&
683
+ (!Satisfaction.IsSatisfied || Satisfaction.ContainsErrors ))
680
684
return true ;
681
685
682
686
Satisfaction.ContainsErrors = false ;
@@ -686,7 +690,8 @@ static bool calculateConstraintSatisfaction(
686
690
TemplateNameLoc, MLTAL, Satisfaction,
687
691
PackSubstitutionIndex);
688
692
if (Ok && Satisfaction.IsSatisfied && !Satisfaction.ContainsErrors )
689
- Satisfaction.Details .erase (Satisfaction.Details .begin () + EffectiveDetailEndIndex,
693
+ Satisfaction.Details .erase (Satisfaction.Details .begin () +
694
+ EffectiveDetailEndIndex,
690
695
Satisfaction.Details .end ());
691
696
return Ok;
692
697
}
@@ -1397,9 +1402,10 @@ static void diagnoseUnsatisfiedRequirement(Sema &S,
1397
1402
concepts::NestedRequirement *Req,
1398
1403
bool First) {
1399
1404
DiagnoseUnsatisfiedConstraint (S, Req->getConstraintSatisfaction ().records (),
1400
- Req->hasInvalidConstraint () ? SourceLocation () :
1401
- Req->getConstraintExpr ()->getExprLoc (), First,
1402
- Req);
1405
+ Req->hasInvalidConstraint ()
1406
+ ? SourceLocation ()
1407
+ : Req->getConstraintExpr ()->getExprLoc (),
1408
+ First, Req);
1403
1409
}
1404
1410
1405
1411
static void diagnoseWellFormedUnsatisfiedConstraintExpr (Sema &S,
0 commit comments