Skip to content

Commit 4477153

Browse files
committed
Format changes
1 parent a27fe8c commit 4477153

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

clang/lib/Sema/SemaTemplateDeduction.cpp

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -869,18 +869,19 @@ class PackDeductionScope {
869869
return {};
870870
unsigned PackSize = Packs[0].Saved.pack_size();
871871

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+
}))
877876
return PackSize;
878877
return {};
879878
}
880879

881880
/// Determine whether this pack has already been deduced from a previous
882881
/// argument.
883-
bool isDeducedFromEarlierParameter() const {return DeducedFromEarlierParameter;}
882+
bool isDeducedFromEarlierParameter() const {
883+
return DeducedFromEarlierParameter;
884+
}
884885

885886
/// Determine whether this pack has already been partially expanded into a
886887
/// sequence of (prior) function parameters / template arguments.
@@ -4406,12 +4407,12 @@ Sema::TemplateDeductionResult Sema::DeduceTemplateArguments(
44064407
// parameters in the template parameter list of the template are
44074408
// replaced with the corresponding deduced or default argument values
44084409
//
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.
44154416
SmallVector<UnexpandedParameterPack, 2> Unexpanded;
44164417
collectUnexpandedParameterPacks(ParamPattern, Unexpanded);
44174418
if (Unexpanded.size() == 0)

0 commit comments

Comments
 (0)