From 17838f2426bb9a69cee1e0b09b182add8e567abd Mon Sep 17 00:00:00 2001 From: Dirk Olbrich Date: Sun, 17 Sep 2023 12:30:01 +0200 Subject: [PATCH] clang-format: no column length, no short blocks --- .clang-format | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.clang-format b/.clang-format index 674f02815f..a69284bdfc 100644 --- a/.clang-format +++ b/.clang-format @@ -1,11 +1,12 @@ -# We'll use defaults from the LLVM style, but with 4 columns indentation. +# We'll use defaults from the LLVM style with modifications BasedOnStyle: LLVM +ColumnLimit: 0 # we do not enforce column lenght, please format responsibly IndentWidth: 4 --- Language: Cpp -AllowShortBlocksOnASingleLine: Always +AllowShortBlocksOnASingleLine: Never AllowShortEnumsOnASingleLine: false -AllowShortIfStatementsOnASingleLine: OnlyFirstIf +AllowShortIfStatementsOnASingleLine: Never AlwaysBreakTemplateDeclarations: Yes BinPackArguments: false BinPackParameters: false @@ -14,9 +15,9 @@ BraceWrapping: SplitEmptyRecord: false SplitEmptyNamespace: false IncludeBlocks: Regroup +InsertBraces: true InsertNewlineAtEOF: true PackConstructorInitializers: CurrentLine -PenaltyReturnTypeOnItsOwnLine: 120 PointerAlignment: Left ReflowComments: false # keep licenze comment blocks SortIncludes: CaseInsensitive