[PATCH] D116316: [clang-format] Add an experimental option to remove optional control statement braces in LLVM C++ code
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 29 06:15:20 PST 2021
MyDeveloperDay added inline comments.
================
Comment at: clang/docs/ClangFormatStyleOptions.rst:3398
+**RemoveBracesLLVM** (``Boolean``) :versionbadge:`clang-format 14`
+ Remove optional braces of control statements (``if``, ``else``, ``for``,
----------------
Can we agree on one set of options that can be used for both insertion and removal even if this patch only does removal
================
Comment at: clang/unittests/Format/FormatTest.cpp:23224
+
+ EXPECT_EQ("if (a)\n"
+ " if (b)\n"
----------------
any reason these can't be verifyFormats?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116316/new/
https://reviews.llvm.org/D116316
More information about the cfe-commits
mailing list