chore: add .clang-format
This commit is contained in:
parent
b8594aecd6
commit
f370824cd8
70
.clang-format
Normal file
70
.clang-format
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
Language: Cpp
|
||||||
|
BasedOnStyle: Google
|
||||||
|
IndentWidth: 4
|
||||||
|
UseTab: Never
|
||||||
|
AlignAfterOpenBracket: Align
|
||||||
|
AlignConsecutiveAssignments: true
|
||||||
|
BreakBeforeClosingBracket: true
|
||||||
|
ColumnLimit: 0
|
||||||
|
MaxEmptyLinesToKeep: 2
|
||||||
|
|
||||||
|
EmptyLineBeforeAccessModifier: Never
|
||||||
|
|
||||||
|
BinPackArguments: true
|
||||||
|
BinPackParameters: true
|
||||||
|
|
||||||
|
BreakBeforeBraces: Custom
|
||||||
|
BraceWrapping:
|
||||||
|
AfterCaseLabel: false
|
||||||
|
AfterClass: false
|
||||||
|
AfterControlStatement: false
|
||||||
|
AfterEnum: false
|
||||||
|
AfterFunction: false
|
||||||
|
AfterNamespace: false
|
||||||
|
AfterObjCDeclaration: false
|
||||||
|
AfterStruct: false
|
||||||
|
AfterUnion: false
|
||||||
|
AfterExternBlock: false
|
||||||
|
BeforeTry: true
|
||||||
|
BeforeCatch: true
|
||||||
|
BeforeElse: true
|
||||||
|
IndentBraces: false
|
||||||
|
SplitEmptyFunction: false
|
||||||
|
SplitEmptyRecord: false
|
||||||
|
SplitEmptyNamespace: false
|
||||||
|
|
||||||
|
AllowShortBlocksOnASingleLine: Never
|
||||||
|
AllowShortCaseLabelsOnASingleLine: false
|
||||||
|
AllowShortFunctionsOnASingleLine: true
|
||||||
|
AllowShortLambdasOnASingleLine: All
|
||||||
|
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
|
||||||
|
AllowShortLoopsOnASingleLine: false
|
||||||
|
|
||||||
|
BreakBeforeComma: true
|
||||||
|
AlignConsecutiveAssignments: false
|
||||||
|
AlignAfterOpenBracket: BlockIndent
|
||||||
|
Cpp11BracedListStyle: false
|
||||||
|
SpaceBeforeCpp11BracedList: true
|
||||||
|
|
||||||
|
BitFieldColonSpacing: After
|
||||||
|
BreakConstructorInitializers: AfterColon
|
||||||
|
BreakInheritanceListStyle: AfterColon
|
||||||
|
SpaceBeforeCtorInitializerColon: false
|
||||||
|
SpaceBeforeInheritanceColon: false
|
||||||
|
|
||||||
|
SpaceInEmptyBlock: true
|
||||||
|
|
||||||
|
IncludeBlocks: Merge
|
||||||
|
|
||||||
|
IncludeCategories:
|
||||||
|
- Regex: '^<'
|
||||||
|
Priority: 0
|
||||||
|
SortPriority: 0
|
||||||
|
- Regex: '^"'
|
||||||
|
Priority: -1
|
||||||
|
SortPriority: 0
|
||||||
|
|
||||||
|
FixNamespaceComments: false
|
||||||
|
NamespaceIndentation: All
|
||||||
|
|
||||||
|
SpaceAfterCStyleCast: true
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -31,4 +31,5 @@
|
|||||||
!CONTRIBUTING.md
|
!CONTRIBUTING.md
|
||||||
!Makefile
|
!Makefile
|
||||||
!README.md
|
!README.md
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
!.clang-format
|
Loading…
Reference in New Issue
Block a user