clang-format: tweak penalty values
clang-format-15 seems to end up with a slightly different whitespace
break than clang-format-14 did. Tweak the PenaltyBreakAssignment
to favor not breaking as often, which allows the two to be more
consistent.
This is already applied to sdbusplus as
I49826e2011bce317b6b82dc985ddd35fa6eef2cb.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I455cc4bf29097e3d0462a7c1b667d21e382af104
diff --git a/style/cpp/.clang-format b/style/cpp/.clang-format
index ba9f48d..edcf98e 100644
--- a/style/cpp/.clang-format
+++ b/style/cpp/.clang-format
@@ -85,12 +85,14 @@
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
+PenaltyBreakAssignment: 25
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
+PenaltyIndentedWhitespace: 0
ReflowComments: true
SortIncludes: true
SortUsingDeclarations: true