@@ -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,29 +665,33 @@ 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 ;
683
687
Satisfaction.IsSatisfied = false ;
684
688
685
689
Ok = calculateConstraintSatisfaction (S, Constraint.getRHS (), Template,
686
- TemplateNameLoc, MLTAL, Satisfaction,
687
- PackSubstitutionIndex);
690
+ TemplateNameLoc, MLTAL, Satisfaction,
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
}
@@ -1381,9 +1386,10 @@ static void diagnoseUnsatisfiedRequirement(Sema &S,
1381
1386
concepts::NestedRequirement *Req,
1382
1387
bool First) {
1383
1388
DiagnoseUnsatisfiedConstraint (S, Req->getConstraintSatisfaction ().records (),
1384
- Req->hasInvalidConstraint () ? SourceLocation () :
1385
- Req->getConstraintExpr ()->getExprLoc (), First,
1386
- Req);
1389
+ Req->hasInvalidConstraint ()
1390
+ ? SourceLocation ()
1391
+ : Req->getConstraintExpr ()->getExprLoc (),
1392
+ First, Req);
1387
1393
}
1388
1394
1389
1395
static void diagnoseWellFormedUnsatisfiedConstraintExpr (Sema &S,
0 commit comments