diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-01-06 12:04:42 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-01-18 08:55:23 +0100 |
commit | aa2465bb7991876c3b5afb5afda54f43fefd9e0a (patch) | |
tree | fe24a79f0751efcb1a71951c9ad8ceda703ba327 /.clang-format | |
parent | bd280a087ecab30f94f7937513ee298c233fcba1 (diff) | |
download | libquotient-aa2465bb7991876c3b5afb5afda54f43fefd9e0a.tar.gz libquotient-aa2465bb7991876c3b5afb5afda54f43fefd9e0a.zip |
.clang-format: try harder to avoid return type on its own line
In reality it's often not just the return type but the return type and
the preceding attribute, in particular [[deprecated("...")]] - and
unfortunately this attribute (and any other, actually) cannot be given
its own line using ClangFormat. So at least try to glue those two to
the function name as much as possible...
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format index 713d2165..8375204a 100644 --- a/.clang-format +++ b/.clang-format @@ -105,7 +105,7 @@ PenaltyBreakComment: 45 PenaltyBreakString: 200 #PenaltyBreakTemplateDeclaration: 10 PenaltyExcessCharacter: 40 -PenaltyReturnTypeOnItsOwnLine: 100 +PenaltyReturnTypeOnItsOwnLine: 150 #PointerAlignment: Left #ReflowComments: true #SortIncludes: true |