[PATCH] D110833: [clang-format] Refactor SpaceBeforeParens to add options

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 2 12:22:40 PDT 2021


HazardyKnusperkeks added a comment.

Looks good, and I really need this to land, to expand it. ;)



================
Comment at: clang/include/clang/Format/Format.h:3369
+    /// \endcode
+    bool AfterForeachMacros;
+    /// If ``true``, put a space before opening parentheses only if the
----------------
Sort before AfterFunction


================
Comment at: clang/unittests/Format/FormatTest.cpp:14275
+  verifyFormat("A::A() : a (1) {}", SomeSpace2);
+  verifyFormat("void f() __attribute__ ((asdf));", SomeSpace2);
+  verifyFormat("*(&a + 1);\n"
----------------
Is this really desired?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110833/new/

https://reviews.llvm.org/D110833



More information about the cfe-commits mailing list