Skip to content

Commit a2ac8b0

Browse files
committed
Merge branch 'kn/ci-clang-format-tidy'
Updates the '.clang-format' to match project conventions. * kn/ci-clang-format-tidy: clang-format: align consecutive macro definitions clang-format: re-adjust line break penalties
2 parents c14fa9a + 7e785b8 commit a2ac8b0

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.clang-format

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ AlignConsecutiveAssignments: false
3232
# double b = 3.14;
3333
AlignConsecutiveDeclarations: false
3434

35+
# Align consecutive macro definitions.
36+
AlignConsecutiveMacros: true
37+
3538
# Align escaped newlines as far left as possible
3639
# #define A \
3740
# int aaaa; \
@@ -209,13 +212,14 @@ KeepEmptyLinesAtTheStartOfBlocks: false
209212

210213
# Penalties
211214
# This decides what order things should be done if a line is too long
212-
PenaltyBreakAssignment: 10
213-
PenaltyBreakBeforeFirstCallParameter: 30
214-
PenaltyBreakComment: 10
215+
PenaltyBreakAssignment: 5
216+
PenaltyBreakBeforeFirstCallParameter: 5
217+
PenaltyBreakComment: 5
215218
PenaltyBreakFirstLessLess: 0
216-
PenaltyBreakString: 10
217-
PenaltyExcessCharacter: 100
218-
PenaltyReturnTypeOnItsOwnLine: 60
219+
PenaltyBreakOpenParenthesis: 300
220+
PenaltyBreakString: 5
221+
PenaltyExcessCharacter: 10
222+
PenaltyReturnTypeOnItsOwnLine: 300
219223

220224
# Don't sort #include's
221225
SortIncludes: false

0 commit comments

Comments
 (0)