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
This commit is contained in:
Tom Praschan 2023-05-28 15:39:43 +02:00 committed by GitHub
parent 8206954a67
commit d561830a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ PenaltyReturnTypeOnItsOwnLine: 200
AllowAllParametersOfDeclarationOnNextLine: false AllowAllParametersOfDeclarationOnNextLine: false
AllowShortIfStatementsOnASingleLine: false AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false AllowShortLoopsOnASingleLine: false
BinPackParameters: false BinPackParameters: true
BreakBeforeBinaryOperators: true BreakBeforeBinaryOperators: true
BreakBeforeTernaryOperators: true BreakBeforeTernaryOperators: true
ContinuationIndentWidth: 2 ContinuationIndentWidth: 2
@ -23,7 +23,7 @@ AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: No AlwaysBreakBeforeMultilineStrings: No
AlwaysBreakTemplateDeclarations: No AlwaysBreakTemplateDeclarations: No
AlignEscapedNewlines: DontAlign AlignEscapedNewlines: DontAlign
BinPackArguments: false BinPackArguments: true
BraceWrapping: BraceWrapping:
AfterClass: false AfterClass: false
AfterControlStatement: false AfterControlStatement: false