[clang] No spaces after colon and comma in initializer list (PR #190657)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 8 11:50:05 PDT 2026


================
@@ -5121,6 +5121,21 @@ struct FormatStyle {
   /// \version 7
   bool SpaceBeforeCtorInitializerColon;
 
+  /// If ``false``, spaces will be removed after constructor initializer colon.
+  /// \code
+  ///    true:                                  false:
+  ///    Foo::Foo() : a(a) {}                   Foo::Foo() :a(a) {}
+  /// \endcode
+  /// \version 22
+  bool SpaceAfterCtorInitializerColon;
----------------
HazardyKnusperkeks wrote:

This still stands.

https://github.com/llvm/llvm-project/pull/190657


More information about the cfe-commits mailing list