[PATCH] D146101: [clang-format] Add DesignatedInitializerIndentWidth option.
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 14 16:20:03 PDT 2023
MyDeveloperDay requested changes to this revision.
MyDeveloperDay added inline comments.
This revision now requires changes to proceed.
================
Comment at: clang/include/clang/Format/Format.h:2031
+ /// };
+ /// }
+ unsigned DesignatedInitializerIndentWidth;
----------------
Endcode
================
Comment at: clang/lib/Format/Format.cpp:905
IO.mapOptional("DerivePointerAlignment", Style.DerivePointerAlignment);
+ IO.mapOptional("DesignatedInitializerIndentWidth",
+ Style.DesignatedInitializerIndentWidth);
----------------
Needs a parse test
================
Comment at: clang/unittests/Format/FormatTest.cpp:4828
+ " .yyyyyyyyyyyyyyyyyy = 2,\n"
+ " .zzzzzzzzzzzzzzzzzz = 3};\n",
+ Style);
----------------
Can we fix the brace positioning too
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146101/new/
https://reviews.llvm.org/D146101
More information about the cfe-commits
mailing list