From 009c2745e27a9b1e9bc3886f159c271fb491c7d4 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Thu, 25 Jun 2020 14:45:53 +0200 Subject: ClangFormat: Relax the clang format file a little bit It will not always insert a line break after 100 sign but tries to find middle ground. Normally it's not a problem but it will prevent some strange looking formatting. Change-Id: I0ba987f944d360b3d0f0d8dce29ef825696b1a92 Reviewed-by: Tim Jenssen --- .clang-format | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to '.clang-format') diff --git a/.clang-format b/.clang-format index 97f7f2b234..e1dad0fa0c 100644 --- a/.clang-format +++ b/.clang-format @@ -1,19 +1,3 @@ -# .clang-format for Qt Creator -# -# This is for clang-format >= 5.0. -# -# The configuration below follows the Qt Creator Coding Rules [1] as closely as -# possible. For documentation of the options, see [2]. -# -# Use ../../tests/manual/clang-format-for-qtc/test.cpp for documenting problems -# or testing changes. -# -# In case you update this configuration please also update the qtcStyle() in src\plugins\clangformat\clangformatutils.cpp -# -# [1] https://doc-snapshots.qt.io/qtcreator-extending/coding-style.html -# [2] https://clang.llvm.org/docs/ClangFormatStyleOptions.html -# ---- Language: Cpp AccessModifierOffset: -4 AlignAfterOpenBracket: Align @@ -90,12 +74,12 @@ NamespaceIndentation: None ObjCBlockIndentWidth: 4 ObjCSpaceAfterProperty: false ObjCSpaceBeforeProtocolList: true -PenaltyBreakAssignment: 150 -PenaltyBreakBeforeFirstCallParameter: 300 +PenaltyBreakAssignment: 500 +PenaltyBreakBeforeFirstCallParameter: 150 PenaltyBreakComment: 500 PenaltyBreakFirstLessLess: 400 PenaltyBreakString: 600 -PenaltyExcessCharacter: 50 +PenaltyExcessCharacter: 7 PenaltyReturnTypeOnItsOwnLine: 300 PointerAlignment: Right ReflowComments: false -- cgit v1.2.1