[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)
via cfe-commits
cfe-commits at lists.llvm.org
Sun May 25 00:25:24 PDT 2025
rmarker wrote:
> @rmarker as of now the option`ApplyAlwaysOnePerLineToTemplateArguments` makes any changes in the formatting only when `BinPackParameters: AlwaysOnePerLine` and it makes it behave as if `BinPackParameters` was set to `OnePerLine` for templates, so it puts each argument on its own line only when they don't fit on the current line.
Yeah, I'm wondering if it would be clearer and more useful to instead split `BinPackParameters` into two separate options. One for regular parameters, and the other for template parameters. Instead of just being able to toggle different functionality just for one `BinPackParameters` option.
https://github.com/llvm/llvm-project/pull/137544
More information about the cfe-commits
mailing list