Use SWP clang-format
This commit is contained in:
parent
af24234d7e
commit
777392856e
1 changed files with 61 additions and 35 deletions
34
clang/clang-format
Normal file → Executable file
34
clang/clang-format
Normal file → Executable file
|
@ -1,26 +1,28 @@
|
||||||
|
|
||||||
Language: Cpp
|
Language: Cpp
|
||||||
IndentWidth: 4
|
IndentWidth: 4
|
||||||
AccessModifierOffset: -4
|
AccessModifierOffset: -4
|
||||||
ColumnLimit: 80
|
ColumnLimit: 100
|
||||||
UseTab: ForContinuationAndIndentation
|
UseTab: ForIndentation
|
||||||
TabWidth: 4
|
TabWidth: 4
|
||||||
|
|
||||||
SortIncludes: false
|
SortIncludes: false
|
||||||
|
|
||||||
AlignAfterOpenBracket: DontAlign
|
|
||||||
|
|
||||||
BreakBeforeBinaryOperators: NonAssignment
|
BreakBeforeBinaryOperators: NonAssignment
|
||||||
|
|
||||||
BreakBeforeBraces: Custom
|
BreakBeforeBraces: Custom
|
||||||
BraceWrapping:
|
BraceWrapping:
|
||||||
AfterClass: true
|
AfterClass: true
|
||||||
AfterStruct: true
|
AfterStruct: true
|
||||||
|
AfterUnion: true
|
||||||
AfterFunction: true
|
AfterFunction: true
|
||||||
|
AfterEnum: true
|
||||||
AfterNamespace: false
|
AfterNamespace: false
|
||||||
AfterControlStatement: true
|
AfterControlStatement: true
|
||||||
BeforeElse: true
|
BeforeElse: true
|
||||||
BeforeCatch: true
|
BeforeCatch: true
|
||||||
|
|
||||||
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
MaxEmptyLinesToKeep: 1
|
MaxEmptyLinesToKeep: 1
|
||||||
Standard: Auto
|
Standard: Auto
|
||||||
|
|
||||||
|
@ -33,3 +35,27 @@ AllowShortFunctionsOnASingleLine: false
|
||||||
|
|
||||||
NamespaceIndentation: Inner
|
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
|
Loading…
Reference in a new issue