diff options
author | Tom Praschan <13141438+tom-anders@users.noreply.github.com> | 2023-05-28 15:39:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-28 15:39:43 +0200 |
commit | d561830a5242a00545a320acb80be083dd590d05 (patch) | |
tree | c2b2a6545c27d58b1749798aa74a675cc5d71912 | |
parent | 8206954a67b96702619ba70d011b454696a608ef (diff) | |
download | rneovim-d561830a5242a00545a320acb80be083dd590d05.tar.gz rneovim-d561830a5242a00545a320acb80be083dd590d05.tar.bz2 rneovim-d561830a5242a00545a320acb80be083dd590d05.zip |
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
-rw-r--r-- | .clang-format | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.clang-format b/.clang-format index a31d753217..9f45ac32e2 100644 --- a/.clang-format +++ b/.clang-format @@ -14,7 +14,7 @@ PenaltyReturnTypeOnItsOwnLine: 200 AllowAllParametersOfDeclarationOnNextLine: false AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false -BinPackParameters: false +BinPackParameters: true BreakBeforeBinaryOperators: true BreakBeforeTernaryOperators: true ContinuationIndentWidth: 2 @@ -23,7 +23,7 @@ AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: No AlwaysBreakTemplateDeclarations: No AlignEscapedNewlines: DontAlign -BinPackArguments: false +BinPackArguments: true BraceWrapping: AfterClass: false AfterControlStatement: false |