[PATCH] D132131: [clang-format] Adds a formatter for aligning trailing comments over empty lines
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 5 13:47:17 PDT 2022
HazardyKnusperkeks added a comment.
In D132131#3770170 <https://reviews.llvm.org/D132131#3770170>, @MyDeveloperDay wrote:
> My personal preference is a new struct without Enabled
We go for a new struct. But why without enabled?
Currently we have a boolean on/off switch `AlignTrailingComments`. This change wanted to add a second boolean to enable aligning ignoring empty lines, naturally its value only matters if `AlignTrailingComments` is `true`.
My request was to use the existing struct (and I'm still in favor of that, but not strong enough to fight anything or anybody over it), but a struct seems to be better than 2 booleans. But an on/off switch still needs to be there, and at least using the same name as other options `Enabled` seems to be the most consistent solution.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132131/new/
https://reviews.llvm.org/D132131
More information about the cfe-commits
mailing list