diff options
author | Robin Gareus <robin@gareus.org> | 2019-08-01 18:31:44 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-08-01 18:31:44 +0200 |
commit | afb987d69826aa5a46de8e31a67a2c5366fc7d64 (patch) | |
tree | 13f501ac25f1f40e55b47c7f35004d1cc5e6a246 | |
parent | 4a52a9b3b0bdbbe74eb424c97d2a176d769bf956 (diff) |
Update clang-format to match ardour-style
-rw-r--r-- | tools/clang-format | 58 |
1 files changed, 36 insertions, 22 deletions
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 |