diff options
author | Patryk Obara <patryk.obara@gmail.com> | 2018-01-24 12:11:54 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-01-24 22:42:04 +0100 |
commit | a3715d43e8e0de4fa1ac98721ad195ca5d46a439 (patch) | |
tree | c314c5afd34f4d4e63614f9222468233e3e4aeeb /.clang-format | |
parent | Git 2.16.1 (diff) | |
download | git-a3715d43e8e0de4fa1ac98721ad195ca5d46a439.tar.xz git-a3715d43e8e0de4fa1ac98721ad195ca5d46a439.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | .clang-format | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format index 611ab4750b..12a89f95f9 100644 --- a/.clang-format +++ b/.clang-format @@ -163,7 +163,7 @@ PenaltyBreakComment: 10 PenaltyBreakFirstLessLess: 0 PenaltyBreakString: 10 PenaltyExcessCharacter: 100 -PenaltyReturnTypeOnItsOwnLine: 5 +PenaltyReturnTypeOnItsOwnLine: 60 # Don't sort #include's SortIncludes: false |