From 23c26686570e7e94352621d5ee0a2c33e6d29eb8 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Thu, 1 Jun 2023 02:06:31 +0200 Subject: [PATCH] QmlDesigner: Update clang-format Change-Id: I1793898e27a92aaf3f4f88390537c405d1f27427 Reviewed-by: Reviewed-by: Thomas Hartmann --- src/plugins/qmldesigner/.clang-format | 42 ++++++++++++++++++++++++--- tests/unit/.clang-format | 42 ++++++++++++++++++++++++--- 2 files changed, 76 insertions(+), 8 deletions(-) diff --git a/src/plugins/qmldesigner/.clang-format b/src/plugins/qmldesigner/.clang-format index 1b576b89626..968dfdec7d1 100644 --- a/src/plugins/qmldesigner/.clang-format +++ b/src/plugins/qmldesigner/.clang-format @@ -6,10 +6,12 @@ AlignConsecutiveDeclarations: false AlignEscapedNewlines: DontAlign AlignOperands: true AlignTrailingComments: true +AllowAllArgumentsOnNextLine: true AllowAllParametersOfDeclarationOnNextLine: true AllowShortBlocksOnASingleLine: false AllowShortCaseLabelsOnASingleLine: false AllowShortFunctionsOnASingleLine: Inline +AllowShortLambdasOnASingleLine: All AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false AlwaysBreakAfterReturnType: None @@ -32,13 +34,16 @@ BraceWrapping: SplitEmptyFunction: false SplitEmptyRecord: false SplitEmptyNamespace: false +BreakAfterAttributes: Never BreakBeforeBinaryOperators: All BreakBeforeBraces: Custom +BreakBeforeConceptDeclarations: Always BreakBeforeInheritanceComma: false BreakBeforeTernaryOperators: true BreakConstructorInitializersBeforeComma: false BreakConstructorInitializers: BeforeComma BreakAfterJavaFieldAnnotations: false +BreakInheritanceList: AfterComma BreakStringLiterals: true ColumnLimit: 100 CommentPragmas: '^ IWYU pragma:' @@ -49,6 +54,8 @@ ContinuationIndentWidth: 4 Cpp11BracedListStyle: true DerivePointerAlignment: false DisableFormat: false +EmptyLineAfterAccessModifier: Never +EmptyLineBeforeAccessModifier: LogicalBlock ExperimentalAutoDetectBinPacking: false FixNamespaceComments: true ForEachMacros: @@ -56,11 +63,15 @@ ForEachMacros: - foreach - Q_FOREACH - BOOST_FOREACH +#IncludeBlocks: Regroup IncludeCategories: - Regex: '^