From 730ac5e3e90b08e10db5dbd975f6a88e7c7cb165 Mon Sep 17 00:00:00 2001
From: James R <justsomejames2@gmail.com>
Date: Fri, 10 Feb 2023 07:08:19 -0800
Subject: [PATCH] clang-format: constructor member initiailizer list breaks
 with trailing colon/commas

Compare before / after:

    A()               B() :
        : a(0)            a(0),
        , b(1)            b(1)
---
 .clang-format | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.clang-format b/.clang-format
index 15b53c8938..085cde61f9 100644
--- a/.clang-format
+++ b/.clang-format
@@ -20,7 +20,7 @@ AlwaysBreakTemplateDeclarations: Yes
 BinPackArguments: false
 BinPackParameters: false
 BreakBeforeBraces: Allman # Always break before braces, to match existing SRB2 code
-BreakConstructorInitializers: BeforeComma
+BreakConstructorInitializers: AfterColon
 CompactNamespaces: true
 ConstructorInitializerAllOnOneLineOrOnePerLine: true
 Cpp11BracedListStyle: true
-- 
GitLab