[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
Thu Apr 9 13:16:54 PDT 2026
================
@@ -5024,6 +5024,22 @@ struct FormatStyle {
/// \version 3.5
bool SpaceAfterCStyleCast;
+ /// If ``false``, spaces will be removed after constructor initializer colon.
+ /// \code
+ /// true: false:
+ /// Foo::Foo() : a(a) {} Foo::Foo() :a(a) {}
----------------
HazardyKnusperkeks wrote:
```suggestion
/// Foo::Foo() : a(a) {} vs. Foo::Foo() :a(a) {}
```
same below.
https://github.com/llvm/llvm-project/pull/190657
More information about the cfe-commits
mailing list