[PATCH] D108752: [clang-format] Group options that pack constructor initializers
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 28 15:45:37 PDT 2021
owenpan marked an inline comment as done.
owenpan added inline comments.
================
Comment at: clang/unittests/Format/FormatTest.cpp:18472
+ FormatStyle::PCIS_Never);
+
Style.EmptyLineBeforeAccessModifier = FormatStyle::ELBAMS_LogicalBlock;
----------------
owenpan wrote:
> HazardyKnusperkeks wrote:
> > Should there be a test for the mapping?
> Ideally yes, but `CHECK_PARSE` can't check mappings of multiple to one, e.g.:
> ```
> CHECK_PARSE("ConstructorInitializerAllOnOneLineOrOnePerLine: true\n"
> "AllowAllConstructorInitializersOnNextLine: false",
> PackConstructorInitializers, FormatStyle::PCIS_CurrentLine);
> ```
Added the tests in https://reviews.llvm.org/D108882.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108752/new/
https://reviews.llvm.org/D108752
More information about the cfe-commits
mailing list