[clang] [clang-format] Respect ColumnLimit while aligning multiline expressions (PR #163863)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 17 14:43:35 PDT 2025


HazardyKnusperkeks wrote:

> Now the program fails to align some cases that are within the limit like this one. The configuration is `{AlignConsecutiveAssignments: {Enabled: true}, ColumnLimit: 15}`.
> 
> ```c++
> int i1 = 1;
> k      = bar(
>     argument1,
>     argument2);
> ```
> 
> I prefer failing to align occasionally over ignoring the column limit.

I agree that the ColumnLimit has to be a priority, but I did find a fix for that example (and the failing test).

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


More information about the cfe-commits mailing list