Index: lib/Format/ContinuationIndenter.cpp =================================================================== --- lib/Format/ContinuationIndenter.cpp +++ lib/Format/ContinuationIndenter.cpp @@ -999,9 +999,13 @@ bool EndsInComma = Current.MatchingParen && Current.MatchingParen->Previous && Current.MatchingParen->Previous->is(tok::comma); + const FormatToken *PreviousNoComment = Current.getPreviousNonComment(); + bool IsAfterAssignment = PreviousNoComment && + PreviousNoComment->getPrecedence() == + prec::Assignment; AvoidBinPacking = - (Current.is(TT_ArrayInitializerLSquare) && EndsInComma) || - Current.is(TT_DictLiteral) || + (/*Current.is(TT_ArrayInitializerLSquare) && */EndsInComma) || + IsAfterAssignment || Current.is(TT_DictLiteral) || Style.Language == FormatStyle::LK_Proto || !Style.BinPackArguments || (NextNoComment && NextNoComment->is(TT_DesignatedInitializerPeriod)); if (Current.ParameterCount > 1)