]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
clang-format: tweak config to bring us closer to README.Coding.
authorRalph Boehme <slow@samba.org>
Fri, 30 Jun 2023 11:00:23 +0000 (13:00 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 24 Oct 2023 13:48:33 +0000 (13:48 +0000)
I'm enabling "AllowAllArgumentsOnNextLine" because that's longstanding practice
with many many function calls like tevent_req_callback_data() and
tevent_req_data() and imho results in the most readable code at the place where
this is often seen (variable declartions with tevent_req_* stuff).

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
.clang-format

index 5385807bc1c276222bc82624814ada63726fe96a..6c7a021a44c66d24dd58e9cb66aaedb41395305f 100644 (file)
@@ -12,6 +12,7 @@ BraceWrapping:
     AfterExternBlock: true
     BeforeElse: false
     BeforeWhile: false
+    AfterControlStatement: MultiLine
 AllowShortIfStatementsOnASingleLine: false
 ColumnLimit: 80
 IndentCaseLabels: false
@@ -19,8 +20,14 @@ AlignAfterOpenBracket: Align
 BinPackParameters: false
 BinPackArguments: false
 AllowAllParametersOfDeclarationOnNextLine: false
-AllowAllArgumentsOnNextLine: false
+AllowAllArgumentsOnNextLine: true
 AllowShortFunctionsOnASingleLine: Empty
 AlwaysBreakAfterReturnType: None
 AlignEscapedNewlines: Left
 SortIncludes: false
+IndentGotoLabels: false
+WhitespaceSensitiveMacros: ['DEBUG']
+PenaltyReturnTypeOnItsOwnLine: 1000
+PenaltyBreakAssignment: 200
+PenaltyBreakBeforeFirstCallParameter: 100
+BreakBeforeBinaryOperators: None