[PATCH] D105099: [clang-format] Add an option to put one constructor initializer per line
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 29 13:25:46 PDT 2021
curdeius added a comment.
Formatting part and tests look good to me, but I'd rather see this patch merge all related boolean options into one enum.
Just thinking out loud, but is it doable to merge AllowAllConstructorInitializersOnNextLine, ConstructorInitializerAllOnOneLineOrOnePerLine and this patch's ConstructorInitializerAlwaysOnePerLine into e.g. ConstructorInitializerStyle: AllowNextLine | NonBinPack==AllOnOneLineOrOnePerLine | OnePerLine. And one other enum value for the default case without special handling.
Of course, we'd need to keep that backward compatible.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105099/new/
https://reviews.llvm.org/D105099
More information about the cfe-commits
mailing list