summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatryk Obara <patryk.obara@gmail.com>2018-01-24 12:11:54 +0100
committerJunio C Hamano <gitster@pobox.com>2018-01-24 13:42:04 -0800
commita3715d43e8e0de4fa1ac98721ad195ca5d46a439 (patch)
treec314c5afd34f4d4e63614f9222468233e3e4aeeb
parent8279ed033f703d4115bee620dccd32a9ec94d9aa (diff)
downloadgit-po/clang-format-functype-weight.tar.gz
clang-format: adjust penalty for return type line breakpo/clang-format-functype-weight
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>
-rw-r--r--.clang-format2
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