From 8dae07111f10b349132113db10401d248d4d10e6 Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Thu, 21 Oct 2021 09:14:14 +0000 Subject: [PATCH] Update clang-format --- template/.clang-format | 92 +++++++++++++++++++++++++----------------- 1 file changed, 56 insertions(+), 36 deletions(-) diff --git a/template/.clang-format b/template/.clang-format index 07327a4..4e18d0e 100644 --- a/template/.clang-format +++ b/template/.clang-format @@ -1,41 +1,61 @@ --- -BasedOnStyle: LLVM -AlignConsecutiveMacros: 'true' -AlignConsecutiveAssignments: 'true' -AlignConsecutiveDeclarations: 'true' -AlignEscapedNewlines: Left -AllowShortBlocksOnASingleLine: 'true' -AllowShortCaseLabelsOnASingleLine: 'true' -AllowShortFunctionsOnASingleLine: All -AllowShortIfStatementsOnASingleLine: Always -AllowShortLoopsOnASingleLine: 'true' -AlwaysBreakAfterDefinitionReturnType: TopLevel -AlwaysBreakAfterReturnType: AllDefinitions -AlwaysBreakBeforeMultilineStrings: 'false' -BinPackArguments: 'false' -BinPackParameters: 'false' -BreakBeforeBinaryOperators: NonAssignment -BreakBeforeBraces: Linux -BreakStringLiterals: 'false' -ColumnLimit: '150' -ConstructorInitializerAllOnOneLineOrOnePerLine: 'true' -Cpp11BracedListStyle: 'false' -IncludeBlocks: Regroup -IndentCaseLabels: 'true' -IndentPPDirectives: None -IndentWidth: '8' +Standard: Auto Language: Cpp -PointerAlignment: Left -ReflowComments: 'true' -SortIncludes: 'true' -SpaceAfterCStyleCast: 'true' -SpaceAfterLogicalNot: 'false' -SpaceBeforeAssignmentOperators: 'true' -SpaceBeforeCpp11BracedList: 'true' -SpaceBeforeParens: ControlStatements -SpacesInCStyleCastParentheses: 'false' -Standard: Cpp11 -TabWidth: '8' +BasedOnStyle: LLVM +ColumnLimit: 0 +IndentWidth: 8 +TabWidth: 8 UseTab: ForIndentation +AlignConsecutiveAssignments: true +AlignConsecutiveBitFields: true +AlignConsecutiveDeclarations: true +AlignConsecutiveMacros: true +AlignEscapedNewlines: Left +AlignOperands: AlignAfterOperator +AlignTrailingComments: true + +AllowShortBlocksOnASingleLine: Always +AllowShortCaseLabelsOnASingleLine: true +AllowShortEnumsOnASingleLine: true +AllowShortFunctionsOnASingleLine: All +AllowShortIfStatementsOnASingleLine: Always +AllowShortLoopsOnASingleLine: true + +AlwaysBreakAfterDefinitionReturnType: TopLevel +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: true +AlwaysBreakBeforeMultilineStrings: false + +BinPackArguments: false +BinPackParameters: false + +BreakBeforeBinaryOperators: All +BreakBeforeBraces: Attach +BreakBeforeTernaryOperators: true + +BreakStringLiterals: false +BreakConstructorInitializers: AfterColon + +IndentCaseLabels: true +IndentPPDirectives: None +IndentGotoLabels: true + +ConstructorInitializerAllOnOneLineOrOnePerLine: true +ContinuationIndentWidth: 2 +Cpp11BracedListStyle: true +IncludeBlocks: Regroup +InsertTrailingCommas: Wrapped +PointerAlignment: Right +ReflowComments: true +SortIncludes: true +SpaceAfterCStyleCast: true +SpaceAfterLogicalNot: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeCpp11BracedList: true +SpaceBeforeParens: Always +SpacesInConditionalStatement: false +SpacesInCStyleCastParentheses: false +SpacesInParentheses: false + ...