@@ -869,18 +869,19 @@ class PackDeductionScope {
869
869
return {};
870
870
unsigned PackSize = Packs[0 ].Saved .pack_size ();
871
871
872
- if (std::all_of (Packs.begin () + 1 , Packs.end (),
873
- [&PackSize](auto P) {
874
- return P.Saved .getKind () == TemplateArgument::Pack &&
875
- P.Saved .pack_size () == PackSize;
876
- }))
872
+ if (std::all_of (Packs.begin () + 1 , Packs.end (), [&PackSize](auto P) {
873
+ return P.Saved .getKind () == TemplateArgument::Pack &&
874
+ P.Saved .pack_size () == PackSize;
875
+ }))
877
876
return PackSize;
878
877
return {};
879
878
}
880
879
881
880
// / Determine whether this pack has already been deduced from a previous
882
881
// / argument.
883
- bool isDeducedFromEarlierParameter () const {return DeducedFromEarlierParameter;}
882
+ bool isDeducedFromEarlierParameter () const {
883
+ return DeducedFromEarlierParameter;
884
+ }
884
885
885
886
// / Determine whether this pack has already been partially expanded into a
886
887
// / sequence of (prior) function parameters / template arguments.
@@ -4406,12 +4407,12 @@ Sema::TemplateDeductionResult Sema::DeduceTemplateArguments(
4406
4407
// parameters in the template parameter list of the template are
4407
4408
// replaced with the corresponding deduced or default argument values
4408
4409
//
4409
- // If we have a trailing parameter pack, that has been deduced perviously
4410
- // we substitute the pack here in a similar fashion as seen above with
4411
- // the trailing parameter packs. The main difference here is that, in
4412
- // this case we are not processing all of the remaining arguments. We
4413
- // are only process as many arguments as much we have in the already
4414
- // deduced parameter.
4410
+ // If we have a trailing parameter pack, that has been deduced
4411
+ // perviously we substitute the pack here in a similar fashion as seen
4412
+ // above with the trailing parameter packs. The main difference here is
4413
+ // that, in this case we are not processing all of the remaining
4414
+ // arguments. We are only process as many arguments as much we have in
4415
+ // the already deduced parameter.
4415
4416
SmallVector<UnexpandedParameterPack, 2 > Unexpanded;
4416
4417
collectUnexpandedParameterPacks (ParamPattern, Unexpanded);
4417
4418
if (Unexpanded.size () == 0 )
0 commit comments