Use SWP clang-format

This commit is contained in:
Michael Mandl 2018-10-19 11:53:09 +02:00
parent af24234d7e
commit 777392856e

34
clang/clang-format Normal file → Executable file
View file

@ -1,26 +1,28 @@
Language: Cpp
IndentWidth: 4
AccessModifierOffset: -4
ColumnLimit: 80
UseTab: ForContinuationAndIndentation
ColumnLimit: 100
UseTab: ForIndentation
TabWidth: 4
SortIncludes: false
AlignAfterOpenBracket: DontAlign
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
@ -33,3 +35,27 @@ 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