================ @@ -1203,6 +1214,10 @@ unsigned ContinuationIndenter::addTokenOnNewLine(LineState &State, } } + if (!Style.BinPackBinaryOperations && Previous.is(TT_BinaryOperator) && + (Previous.getPrecedence() > prec::Conditional)) { + CurrentState.BreakBeforeParameter = true; ---------------- ameerj wrote:
This is for cases such as this: ```c++ result = operand1 + operand2 - operand3 + operand4 - operand5 + operand6; ``` without it, the formatting could do this: ```c++ result = operand1 + operand2 - operand3 + operand4 - operand5 + operand6; ``` https://github.com/llvm/llvm-project/pull/95013 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits