From afb987d69826aa5a46de8e31a67a2c5366fc7d64 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 1 Aug 2019 18:31:44 +0200 Subject: Update clang-format to match ardour-style --- tools/clang-format | 58 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 36 insertions(+), 22 deletions(-) (limited to 'tools') diff --git a/tools/clang-format b/tools/clang-format index e014125497..fe6f4d264b 100644 --- a/tools/clang-format +++ b/tools/clang-format @@ -1,25 +1,39 @@ ---- - +--- Language: Cpp -AlignAfterOpenBracket: 'true' -AlignTrailingComments: 'true' -AlwaysBreakTemplateDeclarations: 'true' -AllowShortBlocksOnASingleLine: 'false' -AllowShortCaseLabelsOnASingleLine: 'false' -AllowShortFunctionsOnASingleLine: All -AllowShortIfStatementsOnASingleLine: 'false' -AllowShortLoopsOnASingleLine: 'false' -AlwaysBreakAfterDefinitionReturnType: 'true' -BasedOnStyle: LLVM -BreakBeforeBraces: 'Linux' -BreakConstructorInitializersBeforeComma: 'true' -ColumnLimit: '100' -ConstructorInitializerAllOnOneLineOrOnePerLine: 'true' -IndentCaseLabels: 'false' -NamespaceIndentation: 'None' -PenaltyReturnTypeOnItsOwnLine: '1' +BasedOnStyle: LLVM +AlignAfterOpenBracket: Align +AlignConsecutiveAssignments: true +AlignConsecutiveDeclarations: true +AlignEscapedNewlinesLeft: false +AllowShortFunctionsOnASingleLine: Empty +AllowShortBlocksOnASingleLine: true +AllowShortIfStatementsOnASingleLine: false +AllowShortCaseLabelsOnASingleLine : false +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterReturnType: AllDefinitions +AlwaysBreakTemplateDeclarations: true +BreakBeforeBraces: Linux +BreakConstructorInitializersBeforeComma: true +ColumnLimit: 0 +ConstructorInitializerAllOnOneLineOrOnePerLine: false +IndentCaseLabels: true +AccessModifierOffset: -8 +IndentWidth: 8 +KeepEmptyLinesAtTheStartOfBlocks: false +PenaltyReturnTypeOnItsOwnLine: 1 +MaxEmptyLinesToKeep: 1 +ReflowComments: true PointerAlignment: Left +SortIncludes: true +SpaceAfterCStyleCast: false +SpaceBeforeAssignmentOperators: true SpaceBeforeParens: Always -TabWidth: '2' -UseTab: ForIndentation - +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInContainerLiterals: true +SpacesInCStyleCastParentheses: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +Cpp11BracedListStyle: false +TabWidth: 8 +UseTab: ForIndentation -- cgit v1.2.3