[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)

via cfe-commits cfe-commits at lists.llvm.org
Tue May 6 22:37:53 PDT 2025


rmarker wrote:

It seems like `BinPackParameters` is currently applying to both regular parameters and also template parameters.
I think it would be inconsistent if it stopped applying to template parameters only when set to `AlwaysOnePerLine`.

What about separating it out into `BinPackTemplateParameters` so that the two cases can be controlled independently?
There are already `BinPackArguments` and `BinPackLongBracedList` also, so having multiple options for bin packing different situations is already established.

I imagine that backwards compatibility could be maintained by having `BinPackTemplateParameters` use the `BinPackParameters` if not explicitly set.

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


More information about the cfe-commits mailing list