Use SWP clang-format
This commit is contained in:
parent
af24234d7e
commit
777392856e
96
clang/clang-format
Normal file → Executable file
96
clang/clang-format
Normal file → Executable file
@ -1,35 +1,61 @@
|
|||||||
Language: Cpp
|
|
||||||
IndentWidth: 4
|
Language: Cpp
|
||||||
AccessModifierOffset: -4
|
IndentWidth: 4
|
||||||
ColumnLimit: 80
|
AccessModifierOffset: -4
|
||||||
UseTab: ForContinuationAndIndentation
|
ColumnLimit: 100
|
||||||
TabWidth: 4
|
UseTab: ForIndentation
|
||||||
|
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
|
||||||
AfterNamespace: false
|
AfterEnum: true
|
||||||
AfterControlStatement: true
|
AfterNamespace: false
|
||||||
BeforeElse: true
|
AfterControlStatement: true
|
||||||
BeforeCatch: true
|
BeforeElse: true
|
||||||
|
BeforeCatch: true
|
||||||
MaxEmptyLinesToKeep: 1
|
|
||||||
Standard: Auto
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
|
MaxEmptyLinesToKeep: 1
|
||||||
IndentCaseLabels: true
|
Standard: Auto
|
||||||
|
|
||||||
BinPackArguments: true
|
IndentCaseLabels: true
|
||||||
BinPackParameters: true
|
|
||||||
|
BinPackArguments: true
|
||||||
AllowShortFunctionsOnASingleLine: false
|
BinPackParameters: true
|
||||||
|
|
||||||
NamespaceIndentation: Inner
|
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
|
Reference in New Issue
Block a user