-
Notifications
You must be signed in to change notification settings - Fork 190
/
Copy path.clang-format
176 lines (176 loc) · 5.03 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
---
# last update based on clang 17 docs
AccessModifierOffset: -8
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveAssignments: false
AlignConsecutiveBitFields: false
AlignConsecutiveDeclarations: false
AlignConsecutiveMacros: true
#AlignConsecutiveShortCaseStatements: false, 17+
AlignEscapedNewlines: DontAlign
AlignOperands: false
AlignTrailingComments: Never
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
AttributeMacros: ['__declspec', '__unused', '__attribute__']
BinPackArguments: true
BinPackParameters: true
BitFieldColonSpacing: Both
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: true
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterExternBlock: true
AfterFunction: true
AfterNamespace: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyNamespace: false
SplitEmptyRecord: false
BracedInitializerIndentWidth: 8
BreakAfterAttributes: Leave
BreakBeforeBinaryOperators: None
BreakBeforeConceptDeclarations: Allowed
BreakBeforeTernaryOperators: false
BreakConstructorInitializers: BeforeColon
BreakConstructorInitializersBeforeComma: false
BreakInheritanceList: AfterComma
BreakStringLiterals: true
ColumnLimit: 0
#CommentPragmas: used to preserve special comments
CompactNamespaces: false
ConstructorInitializerIndentWidth: 8
ContinuationIndentWidth: 8
Cpp11BracedListStyle: false
DerivePointerAlignment: false
DisableFormat: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: Always
FixNamespaceComments: false
IncludeBlocks: Regroup
IncludeCategories:
- Priority: 2
Regex: '^"(CircularBuffer|defsounds|errors|exports|globals|ie_.*|opcode_params|overlays|Platform|plugindef|Predicates|RGBAColor|SClassID|strrefs|voodooconst|win32def)\.h"'
SortPriority: 0
- Priority: 3
Regex: '^"[^/]+"'
SortPriority: 0
- Priority: 4
Regex: '^".*/'
SortPriority: 0
- Priority: 5
Regex: '^<'
SortPriority: 0
- Priority: 1
Regex: '.*'
SortPriority: 0
IncludeIsMainRegex: $
IncludeIsMainSourceRegex: ''
IndentAccessModifiers: false
IndentCaseBlocks: true
IndentCaseLabels: true
IndentExternBlock: true
IndentGotoLabels: false
IndentPPDirectives: BeforeHash
IndentRequiresClause: true
IndentWidth: 8
IndentWrappedFunctionNames: true
InsertBraces: false
InsertNewlineAtEOF: true
#IntegerLiteralSeparator: 0, 17+
#KeepEmptyLinesAtEOF: false, 17+
KeepEmptyLinesAtTheStartOfBlocks: false
LambdaBodyIndentation: Signature
Language: Cpp
#LineStyle: LF, 17+
MacroBlockBegin: ''
MacroBlockEnd: ''
#Macros: 17+, for macro hacks
MaxEmptyLinesToKeep: 2
NamespaceIndentation: Inner
PPIndentWidth: -1
PackConstructorInitializers: NextLine
# not really needed, current values only cause the change of 1 line
#PenaltyBreakAssignment: 0
#PenaltyBreakBeforeFirstCallParameter: 21
#PenaltyBreakComment: 411
#PenaltyBreakFirstLessLess: 101
#PenaltyBreakOpenParenthesis:
#PenaltyBreakString: 460
#PenaltyBreakTemplateDeclaration: 10
#PenaltyExcessCharacter: 835460
#PenaltyReturnTypeOnItsOwnLine: 199
PointerAlignment: Left
QualifierAlignment: Leave
#QualifierOrder
#RawStringFormats for formatting code in raw strings
#ReferenceAlignment will use PointerAlignment
ReflowComments: false
RemoveBracesLLVM: false
#RemoveParentheses: Leave, 17+
RemoveSemicolon: false
RequiresClausePosition: OwnLine
RequiresExpressionIndentation: OuterScope
SeparateDefinitionBlocks: Leave
#ShortNamespaceLines: 3, useless without FixNamespaceComments
SortIncludes: CaseSensitive
SortUsingDeclarations: Never
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: Never
SpacesInContainerLiterals: true
#SpacesInLineCommentPrefix: -1, needs ReflowComments
#SpacesInParens: Never, 17+
SpacesInSquareBrackets: false
Standard: c++14
#StatementAttributeLikeMacros:
#StatementMacros
TabWidth: 8
#TypeNames: 17+, for special type names
#TypenameMacros
UseTab: ForContinuationAndIndentation
#WhitespaceSensitiveMacros
---
Language: ObjC
ColumnLimit: 0
UseTab: ForContinuationAndIndentation
TabWidth: 8
IndentWidth: 8
AccessModifierOffset: -8
ContinuationIndentWidth: 8
IndentPPDirectives: BeforeHash
PointerAlignment: Left
SpaceInEmptyBlock: false
...