From: Patryk Obara Date: Thu, 18 Jan 2018 14:50:54 GMT Subject: [PATCH 02/11] clang-format: adjust penalty for return type line break Message-ID: <97071dd7f5132e333627eb2326a88af9dfd08930.1516282880.git.patryk.obara@gmail.com> In-Reply-To: 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 --- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.14.3