[clang] [clang-format] Option to Ignore Trailing Comment Length to AlignConsecutive (PR #190668)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 7 13:53:44 PDT 2026
https://github.com/HazardyKnusperkeks commented:
> Adding additional style options
>
> Each additional style option adds costs to the clang-format project. Some of these costs affect the clang-format development itself, as we need to make sure that any given combination of options work and that new features don’t break any of the existing options in any way. There are also costs for end users as options become less discoverable and people have to think about and make a decision on options they don’t really care about.
>
> The goal of the clang-format project is more on the side of supporting a limited set of styles really well as opposed to supporting every single style used by a codebase somewhere in the wild. Of course, we do want to support all major projects and thus have established the following bar for adding style options. Each new style option must:
>
> * be used in a project of significant size (have dozens of contributors)
> * have a publicly accessible style guide
> * have a person willing to contribute and maintain patches
>
I have to quote this, because I think this is an uncommon formatting style, with many possible ways to expect something different from the output. It also violates (although documented) the `ColumnLimit`.
Let me ask, do you really need trailing comments, can't you just put the comments on their own line?
https://github.com/llvm/llvm-project/pull/190668
More information about the cfe-commits
mailing list