Add clang-format configuration
This commit is contained in:
parent
c79b237ba3
commit
2474cb7f46
1 changed files with 37 additions and 0 deletions
37
.clang-format
Normal file
37
.clang-format
Normal file
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
BasedOnStyle: Webkit
|
||||
Language: Cpp
|
||||
SpaceBeforeParens: Always
|
||||
SpaceAfterTemplateKeyword: true
|
||||
Standard: Cpp11
|
||||
TabWidth: 4
|
||||
IndentWidth: 4
|
||||
PointerAlignment: Middle
|
||||
UseTab: ForIndentation
|
||||
BreakBeforeBraces: Custom
|
||||
AlignEscapedNewlines: Left
|
||||
AllowShortBlocksOnASingleLine: false
|
||||
AllowShortCaseLabelsOnASingleLine: false
|
||||
AllowShortFunctionsOnASingleLine: false
|
||||
AllowShortLoopsOnASingleLine: false
|
||||
BreakConstructorInitializersBeforeComma: true
|
||||
BreakConstructorInitializers: AfterColon
|
||||
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
||||
ConstructorInitializerIndentWidth: 0
|
||||
ContinuationIndentWidth: 0
|
||||
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||
IndentCaseLabels: true
|
||||
BraceWrapping:
|
||||
AfterEnum: true
|
||||
AfterStruct: true
|
||||
SplitEmptyFunction: true
|
||||
AfterControlStatement: true
|
||||
AfterFunction: true
|
||||
AfterNamespace: true
|
||||
AfterUnion: true
|
||||
AfterClass: true
|
||||
BeforeCatch: true
|
||||
BeforeElse: true
|
||||
SplitEmptyRecord: true
|
||||
SplitEmptyNamespace: true
|
||||
...
|
Loading…
Add table
Add a link
Reference in a new issue