[clang] [clang-format] Fix the indent of the ternary operator when AlignOperands and BreakBeforeTernaryOperators is specified. (PR #100860)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 28 12:02:01 PDT 2024


https://github.com/HazardyKnusperkeks requested changes to this pull request.

You are changing a lot of test cases, that means you will break a lot of formattings out there, especially since 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.

https://github.com/llvm/llvm-project/pull/100860


More information about the cfe-commits mailing list