@@ -874,13 +874,13 @@ static void guardOnAnyOptional(FmtContext &ctx, MethodBody &os,
874874}
875875
876876void DefFormat::genCommaSeparatedPrinter (
877- ArrayRef<FormatElement *> params , FmtContext &ctx, MethodBody &os,
877+ ArrayRef<FormatElement *> args , FmtContext &ctx, MethodBody &os,
878878 function_ref<void (FormatElement *)> extra) {
879879 // Emit a space if necessary, but only if the struct is present.
880880 if (shouldEmitSpace || !lastWasPunctuation) {
881- bool allOptional = llvm::all_of (params , formatIsOptional);
881+ bool allOptional = llvm::all_of (args , formatIsOptional);
882882 if (allOptional)
883- guardOnAnyOptional (ctx, os, params );
883+ guardOnAnyOptional (ctx, os, args );
884884 os << tgfmt (" $_printer << ' ';\n " , &ctx);
885885 if (allOptional)
886886 os.unindent () << " }\n " ;
@@ -889,7 +889,7 @@ void DefFormat::genCommaSeparatedPrinter(
889889 // The first printed element does not need to emit a comma.
890890 os << " {\n " ;
891891 os.indent () << " bool _firstPrinted = true;\n " ;
892- for (FormatElement *arg : params ) {
892+ for (FormatElement *arg : args ) {
893893 ParameterElement *param = getEncapsulatedParameterElement (arg);
894894 if (param->isOptional ()) {
895895 param->genPrintGuard (ctx, os << " if (" ) << " ) {\n " ;
0 commit comments