diff options
author | Marco Bubke <marco.bubke@qt.io> | 2020-06-25 14:45:53 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2020-06-30 09:52:59 +0000 |
commit | 009c2745e27a9b1e9bc3886f159c271fb491c7d4 (patch) | |
tree | 686b7d33706834c55639b6e339e0003ea4eb30b4 /.clang-format | |
parent | 32e181f5ce8795c73302d7b59713ca51bc7b1802 (diff) |
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 <tim.jenssen@qt.io>
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/.clang-format b/.clang-format index 97f7f2b2347..e1dad0fa0c0 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 |