From 536e7f32c6ad0cdebfb5639d9f33d94c75d7d7fb Mon Sep 17 00:00:00 2001 From: elsid Date: Thu, 15 Sep 2022 21:19:20 +0200 Subject: [PATCH] Adjust clang-format --- .clang-format | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.clang-format b/.clang-format index 0b3bd85f37..b5891be0a1 100644 --- a/.clang-format +++ b/.clang-format @@ -9,14 +9,14 @@ AlignOperands: false AlignTrailingComments: false AllowAllParametersOfDeclarationOnNextLine: true AllowShortBlocksOnASingleLine: false -AllowShortCaseLabelsOnASingleLine: true -AllowShortFunctionsOnASingleLine: InlineOnly +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Inline AllowShortIfStatementsOnASingleLine: false AllowShortLambdasOnASingleLine: All AllowShortLoopsOnASingleLine: false AlwaysBreakAfterDefinitionReturnType: None AlwaysBreakAfterReturnType: None -AlwaysBreakBeforeMultilineStrings: false +AlwaysBreakBeforeMultilineStrings: true AlwaysBreakTemplateDeclarations: true BinPackArguments: true BinPackParameters: true @@ -41,7 +41,7 @@ BreakBeforeInheritanceComma: false BreakBeforeTernaryOperators: true BreakConstructorInitializersBeforeComma: true BreakStringLiterals: true -ColumnLimit: 160 +ColumnLimit: 120 CompactNamespaces: false ConstructorInitializerAllOnOneLineOrOnePerLine: false ConstructorInitializerIndentWidth: 4 @@ -99,3 +99,5 @@ SpacesInSquareBrackets: false Standard: c++20 TabWidth: 4 UseTab: Never +StatementMacros: + - META_Object