Skip to content

Commit d561830

Browse files
authored
build: align .clang-format rules with uncrustify config
Difference can be seen e.g. in qf_add_entry(), where clang-format previously would want to place each parameter declaration on its own line (BinPackParameter: false), while uncrustify behaves if as BinPackParameters was set to true. Same goes for BinPackArguments. See https://clang.llvm.org/docs/ClangFormatStyleOptions.html#BinPackParameters and https://clang.llvm.org/docs/ClangFormatStyleOptions.html#binpackarguments
1 parent 8206954 commit d561830

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.clang-format

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ PenaltyReturnTypeOnItsOwnLine: 200
1414
AllowAllParametersOfDeclarationOnNextLine: false
1515
AllowShortIfStatementsOnASingleLine: false
1616
AllowShortLoopsOnASingleLine: false
17-
BinPackParameters: false
17+
BinPackParameters: true
1818
BreakBeforeBinaryOperators: true
1919
BreakBeforeTernaryOperators: true
2020
ContinuationIndentWidth: 2
@@ -23,7 +23,7 @@ AlwaysBreakAfterReturnType: None
2323
AlwaysBreakBeforeMultilineStrings: No
2424
AlwaysBreakTemplateDeclarations: No
2525
AlignEscapedNewlines: DontAlign
26-
BinPackArguments: false
26+
BinPackArguments: true
2727
BraceWrapping:
2828
AfterClass: false
2929
AfterControlStatement: false

0 commit comments

Comments
 (0)