diff --git a/.clang-format b/.clang-format index 8343aa31..ad2ec55a 100644 --- a/.clang-format +++ b/.clang-format @@ -1,50 +1,51 @@ -# .clang-format for Cutelyst projects 2023-04-18 +# .clang-format for Cutelyst projects 2023-09-15 # Tries to be close to Qt coding style # but meh for ASql lambdas which LambdaBodyIndentation ins't enough --- +Language: Cpp AccessModifierOffset: -4 AlignAfterOpenBracket: Align -AlignConsecutiveMacros: 'false' -AlignConsecutiveAssignments: 'true' -AlignConsecutiveDeclarations: 'false' -AllowShortEnumsOnASingleLine: 'true' +AlignConsecutiveMacros: false +AlignConsecutiveAssignments: true +AlignConsecutiveDeclarations: false +AllowShortEnumsOnASingleLine: true AlignEscapedNewlines: DontAlign -AlignOperands: 'true' -AlignTrailingComments: 'true' -AllowAllArgumentsOnNextLine: 'true' -AllowAllParametersOfDeclarationOnNextLine: 'false' -AllowShortBlocksOnASingleLine: 'false' -AllowShortCaseLabelsOnASingleLine: 'false' -AllowShortFunctionsOnASingleLine: Inline +AlignOperands: true +AlignTrailingComments: true +AllowAllArgumentsOnNextLine: true +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortBlocksOnASingleLine: false +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: InlineOnly AllowShortIfStatementsOnASingleLine: Never AllowShortLambdasOnASingleLine: Inline -AllowShortLoopsOnASingleLine: 'false' +AllowShortLoopsOnASingleLine: false AlwaysBreakAfterReturnType: None -AlwaysBreakBeforeMultilineStrings: 'false' +AlwaysBreakBeforeMultilineStrings: false AlwaysBreakTemplateDeclarations: 'Yes' -BinPackArguments: 'false' -BinPackParameters: 'false' +BinPackArguments: false +BinPackParameters: false BreakBeforeBinaryOperators: None BreakBeforeBraces: Custom BraceWrapping: - AfterCaseLabel: 'true' - AfterClass: 'true' - AfterEnum: 'false' + AfterCaseLabel: true + AfterClass: true + AfterEnum: false AfterFunction: true - SplitEmptyFunction: 'true' - SplitEmptyRecord: 'true' - SplitEmptyNamespace: 'true' -BreakBeforeTernaryOperators: 'true' + SplitEmptyFunction: true + SplitEmptyRecord: true + SplitEmptyNamespace: true +BreakBeforeTernaryOperators: true BreakConstructorInitializers: BeforeComma BreakInheritanceList: BeforeComma -BreakStringLiterals: 'true' -CompactNamespaces: 'false' -ConstructorInitializerAllOnOneLineOrOnePerLine: 'false' +BreakStringLiterals: true +CompactNamespaces: false +ConstructorInitializerAllOnOneLineOrOnePerLine: false ConstructorInitializerIndentWidth: '4' ContinuationIndentWidth: '4' ColumnLimit: 100 -Cpp11BracedListStyle: 'true' -FixNamespaceComments: 'true' +Cpp11BracedListStyle: true +FixNamespaceComments: true ForEachMacros: - forever # avoids { wrapped to next line - foreach @@ -54,34 +55,33 @@ IncludeCategories: - Regex: '^