From b86160081441817a8d3f640b5c4293059c762cc4 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 5 Jul 2021 20:55:23 +0200 Subject: [PATCH] Adjusted the clang-format rules. --- .clang-format | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.clang-format b/.clang-format index ad3eebf19..1e2200e58 100644 --- a/.clang-format +++ b/.clang-format @@ -11,7 +11,7 @@ Language: Cpp # BasedOnStyle: WebKit AccessModifierOffset: -4 -AlignAfterOpenBracket: DontAlign +AlignAfterOpenBracket: Align AlignConsecutiveMacros: false AlignConsecutiveAssignments: false AlignConsecutiveDeclarations: false @@ -25,15 +25,15 @@ AllowShortBlocksOnASingleLine: Empty AllowShortCaseLabelsOnASingleLine: false # The following option requires version >= 11.0. #####AllowShortEnumsOnASingleLine: false -AllowShortFunctionsOnASingleLine: None -AllowShortLambdasOnASingleLine: Empty +AllowShortFunctionsOnASingleLine: All +AllowShortLambdasOnASingleLine: All AllowShortIfStatementsOnASingleLine: Never AllowShortLoopsOnASingleLine: false AlwaysBreakAfterDefinitionReturnType: None AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false AlwaysBreakTemplateDeclarations: MultiLine -BinPackArguments: false +BinPackArguments: true BinPackParameters: false BraceWrapping: AfterCaseLabel: false @@ -65,7 +65,7 @@ CommentPragmas: '^ IWYU pragma:' CompactNamespaces: false ConstructorInitializerAllOnOneLineOrOnePerLine: false ConstructorInitializerIndentWidth: 4 -ContinuationIndentWidth: 8 +ContinuationIndentWidth: 4 Cpp11BracedListStyle: false DeriveLineEnding: true DerivePointerAlignment: false