From b146f0648e407bc82ab322bac67e275a13261ee0 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 12 Dec 2024 21:53:22 -0300 Subject: [PATCH] [clang-format] Set PackConstructorInitializers=CurrentLine We prefer two kinds of formatting for constructors: Ctor() : a(), b() {} Ctor() : aaa() , bbb() , ccc() --- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 9cea58377..691766be0 100644 --- a/.clang-format +++ b/.clang-format @@ -152,7 +152,7 @@ ObjCBlockIndentWidth: 2 ObjCBreakBeforeNestedBlockParam: true ObjCSpaceAfterProperty: false ObjCSpaceBeforeProtocolList: true -PackConstructorInitializers: BinPack +PackConstructorInitializers: CurrentLine PenaltyBreakAssignment: 50 PenaltyBreakBeforeFirstCallParameter: 2 PenaltyBreakComment: 30