-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
133 lines (132 loc) · 3.97 KB
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
---
Language: Cpp
BasedOnStyle: LLVM
AccessModifierOffset: -8
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignOperands: Align
AlignTrailingComments:
Kind: Always
OverEmptyLines: 8
RemoveBracesLLVM: true
IndentWrappedFunctionNames: true
AllowShortFunctionsOnASingleLine: None
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: false
AlwaysBreakTemplateDeclarations: No
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: false
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterStruct: true
AfterUnion: true
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
SplitEmptyFunction: false
AfterObjCDeclaration: false
IndentBraces: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBraces: Mozilla
BreakConstructorInitializersBeforeComma: false
BreakInheritanceList: AfterColon
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossComments: true
AcrossEmptyLines: true
AlignCaseColons: true
AlignAfterOpenBracket: Align
AlignArrayOfStructures: Left
AlignConsecutiveBitFields: true
AlignConsecutiveMacros: true
#AlignConsecutiveTableGenBreakingDAGArgColons: true
#AlignConsecutiveTableGenCondOperatorColons: true
#AlignConsecutiveTableGenDefinitionColons: true
AlignEscapedNewlines: Right
AllowBreakBeforeNoexceptSpecifier: Always
#AllowShortCaseExpressionOnASingleLine: true
#AllowShortCompoundRequirementOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AllowShortLambdasOnASingleLine: All
AlwaysBreakBeforeMultilineStrings: false
BitFieldColonSpacing: Both
BracedInitializerIndentWidth: 8
#BreakAdjacentStringLiterals: true
BreakAfterAttributes: Never
BreakAfterJavaFieldAnnotations: true
#BreakAfterReturnType: Automatic
BreakArrays: false
BreakBeforeBinaryOperators: All
BreakBeforeConceptDeclarations: Never
BreakBeforeInlineASMColon: OnlyMultiline
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: AfterColon
#BreakFunctionDefinitionParameters: false
BreakStringLiterals: true
#BreakTemplateDeclarations: No
ConstructorInitializerIndentWidth: 8
Cpp11BracedListStyle: true
DerivePointerAlignment: true
ExperimentalAutoDetectBinPacking: true
FixNamespaceComments: true
Standard: Latest
TabWidth: 8
SpacesBeforeTrailingComments: 4
InsertBraces: false
ColumnLimit: 150
CompactNamespaces: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ContinuationIndentWidth: 16
IncludeCategories:
- Regex: '^<engine/(client|server)/.*'
Priority: 1
- Regex: '^<engine/.*'
Priority: 2
- Regex: '^<game/(client|server)/.*'
Priority: 3
- Regex: '^<game/.*'
Priority: 4
- Regex: '^<.*/.*'
Priority: 5
- Regex: '^<.*'
Priority: 6
- Regex: '^".*'
Priority: 7
- Regex: '.*'
Priority: 8
IncludeIsMainRegex: '([-_](test|unittest))?$'
IndentCaseLabels: true
IndentPPDirectives: AfterHash
IndentWidth: 8
InsertNewlineAtEOF: true
MacroBlockBegin: '^REGIONB$'
MacroBlockEnd: '^REGIONE$'
NamespaceIndentation: All
PointerAlignment: Left
ReflowComments: false
SpaceAfterTemplateKeyword: false
SpaceInEmptyParentheses: true
SpacesInAngles: Always
SpacesInConditionalStatement: true
SpacesInCStyleCastParentheses: true
SpacesInParentheses: true
SpacesInSquareBrackets: true
UseTab: Always
CommentPragmas: '^<-.*$'
SortIncludes: CaseSensitive
IncludeBlocks: Preserve
...