summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatryk Obara <patryk.obara@gmail.com>2018-01-24 11:11:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-01-24 21:42:04 (GMT)
commita3715d43e8e0de4fa1ac98721ad195ca5d46a439 (patch)
treec314c5afd34f4d4e63614f9222468233e3e4aeeb
parent8279ed033f703d4115bee620dccd32a9ec94d9aa (diff)
downloadgit-a3715d43e8e0de4fa1ac98721ad195ca5d46a439.zip
git-a3715d43e8e0de4fa1ac98721ad195ca5d46a439.tar.gz
git-a3715d43e8e0de4fa1ac98721ad195ca5d46a439.tar.bz2
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>
-rw-r--r--.clang-format2
1 files changed, 1 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format
index 611ab47..12a89f9 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