clang-format: adjust penalty for return type line break
The penalty of 5 makes clang-format very eager to put even short type declarations (e.g. "extern int") into a separate line, even when breaking parameters list is sufficient. Signed-off-by: Patryk Obara <patryk.obara@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
8279ed033f
commit
a3715d43e8
@@ -163,7 +163,7 @@ PenaltyBreakComment: 10
|
|||||||
PenaltyBreakFirstLessLess: 0
|
PenaltyBreakFirstLessLess: 0
|
||||||
PenaltyBreakString: 10
|
PenaltyBreakString: 10
|
||||||
PenaltyExcessCharacter: 100
|
PenaltyExcessCharacter: 100
|
||||||
PenaltyReturnTypeOnItsOwnLine: 5
|
PenaltyReturnTypeOnItsOwnLine: 60
|
||||||
|
|
||||||
# Don't sort #include's
|
# Don't sort #include's
|
||||||
SortIncludes: false
|
SortIncludes: false
|
||||||
|
|||||||
Reference in New Issue
Block a user