[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 16 12:07:35 PDT 2024
HazardyKnusperkeks wrote:
> It seems that this patch implements the new option without regard to the relative precedence of the binary operators:
>
> ```
> $ cat bar.cc
> foooooooooooo1 = foooooooooooo2 * foooooooooooo3 +
> foooooooooooo4 / foooooooooooo5 - foooooooooooo6;
> $ clang-format -style='{BinPackBinaryOperations: false}' bar.cc
> foooooooooooo1 = foooooooooooo2 *
> foooooooooooo3 +
> foooooooooooo4 /
> foooooooooooo5 -
> foooooooooooo6;
> $
> ```
>
> @mydeveloperday @HazardyKnusperkeks @rymiel are you okay with this?
Per documentation that is exactly intended. So I'm in favor of that behavior.
https://github.com/llvm/llvm-project/pull/95013
More information about the cfe-commits
mailing list