From 777392856ec73cec1446d488524bdf2c68441789 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Fri, 19 Oct 2018 11:53:09 +0200 Subject: [PATCH] Use SWP clang-format --- clang/clang-format | 96 +++++++++++++++++++++++++++++----------------- 1 file changed, 61 insertions(+), 35 deletions(-) mode change 100644 => 100755 clang/clang-format diff --git a/clang/clang-format b/clang/clang-format old mode 100644 new mode 100755 index 4b513be..485b463 --- a/clang/clang-format +++ b/clang/clang-format @@ -1,35 +1,61 @@ -Language: Cpp -IndentWidth: 4 -AccessModifierOffset: -4 -ColumnLimit: 80 -UseTab: ForContinuationAndIndentation -TabWidth: 4 - -SortIncludes: false - -AlignAfterOpenBracket: DontAlign - -BreakBeforeBinaryOperators: NonAssignment - -BreakBeforeBraces: Custom -BraceWrapping: - AfterClass: true - AfterStruct: true - AfterFunction: true - AfterNamespace: false - AfterControlStatement: true - BeforeElse: true - BeforeCatch: true - -MaxEmptyLinesToKeep: 1 -Standard: Auto - -IndentCaseLabels: true - -BinPackArguments: true -BinPackParameters: true - -AllowShortFunctionsOnASingleLine: false - -NamespaceIndentation: Inner - + +Language: Cpp +IndentWidth: 4 +AccessModifierOffset: -4 +ColumnLimit: 100 +UseTab: ForIndentation +TabWidth: 4 + +SortIncludes: false + +BreakBeforeBinaryOperators: NonAssignment + +BreakBeforeBraces: Custom +BraceWrapping: + AfterClass: true + AfterStruct: true + AfterUnion: true + AfterFunction: true + AfterEnum: true + AfterNamespace: false + AfterControlStatement: true + BeforeElse: true + BeforeCatch: true + +KeepEmptyLinesAtTheStartOfBlocks: false +MaxEmptyLinesToKeep: 1 +Standard: Auto + +IndentCaseLabels: true + +BinPackArguments: true +BinPackParameters: true + +AllowShortFunctionsOnASingleLine: false + +NamespaceIndentation: Inner + +ReflowComments: false +PenaltyBreakComment: 1000000 + +AllowAllParametersOfDeclarationOnNextLine: true + +AlwaysBreakTemplateDeclarations: Yes +AlwaysBreakBeforeMultilineStrings: true + +SpaceAfterTemplateKeyword: false +SpaceBeforeParens: ControlStatements + +BreakConstructorInitializers: BeforeComma +BreakInheritanceList: BeforeComma + +CompactNamespaces: true + +FixNamespaceComments: false + +AlignTrailingComments: true + + +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AllowShortFunctionsOnASingleLine: false \ No newline at end of file