hnakamura5 wrote:

>  this is the default behavior of clang-format. And someone did intend it that 
> way.
> If the change is desired, the BreakBeforeTernaryOperators option should be 
> expanded to an enum or AlignOperands extended.

I agree. The current style has been default in this many years. Enough time to 
be got familiar with.

https://clang.llvm.org/docs/ClangFormatStyleOptions.html#alignoperands

The issue https://github.com/llvm/llvm-project/issues/98559 can also be 
regarded as the inaccuracy of the manual. That says 
> OAS_Align (in configuration: Align) Horizontally align operands of binary and 
> ternary expressions

Only changing this part may be better.

If the precise alignment is desired, adding a new `AlignOperands` option is the 
way.




https://github.com/llvm/llvm-project/pull/100860
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to