[clang] [clang-format] Add ApplyAlwaysOnePerLineToTemplateArguments option (PR #137544)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 28 22:15:32 PDT 2025
owenca wrote:
> Introduce a new FormatStyle option, `ApplyAlwaysOnePerLineToTemplateArguments`, which controls whether `BinPackParameters=AlwaysOnePerLine` also applies to template argument lists.
>
> This allows users to enforce one-per-line formatting for function parameters without unintentionally splitting template arguments.
This looks like a bug. Can we fix it without introducing a new option? If not, can we add it as a sub-option to `BinPackParameters`?
https://github.com/llvm/llvm-project/pull/137544
More information about the cfe-commits
mailing list