Skip to content

Commit 4812340

Browse files
committed
Merge branch 'bw/git-clang-format'
Adjust clang-format penalty parameters. * bw/git-clang-format: clang-format: adjust line break penalties
2 parents 8f2733a + 42efde4 commit 4812340

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.clang-format

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ KeepEmptyLinesAtTheStartOfBlocks: false
153153

154154
# Penalties
155155
# This decides what order things should be done if a line is too long
156-
PenaltyBreakAssignment: 100
157-
PenaltyBreakBeforeFirstCallParameter: 100
158-
PenaltyBreakComment: 100
156+
PenaltyBreakAssignment: 10
157+
PenaltyBreakBeforeFirstCallParameter: 30
158+
PenaltyBreakComment: 10
159159
PenaltyBreakFirstLessLess: 0
160-
PenaltyBreakString: 100
161-
PenaltyExcessCharacter: 5
162-
PenaltyReturnTypeOnItsOwnLine: 0
160+
PenaltyBreakString: 10
161+
PenaltyExcessCharacter: 100
162+
PenaltyReturnTypeOnItsOwnLine: 5
163163

164164
# Don't sort #include's
165165
SortIncludes: false

0 commit comments

Comments
 (0)