Compile fixes.
[SquirrelJME.git] / nanocoat / .clang-format
blob6cef994f2a4dde4b9e7071f1dea24659303c5a4c
1 # ---------------------------------------------------------------------------
2 # SquirrelJME
3 #     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
4 # ---------------------------------------------------------------------------
5 # SquirrelJME is under the Mozilla Public License Version 2.0.
6 # See license.mkd for licensing and copyright information.
7 # ---------------------------------------------------------------------------
8 ---
9 BasedOnStyle: LLVM
10 AccessModifierOffset: -4
11 AlignAfterOpenBracket: AlwaysBreak
12 AlignArrayOfStructures: None
13 AlignConsecutiveAssignments:
14   Enabled: false
15   AcrossEmptyLines: false
16   AcrossComments: false
17   AlignCompound: false
18   PadOperators: false
19 AlignConsecutiveBitFields:
20   Enabled: false
21   AcrossEmptyLines: false
22   AcrossComments: false
23   AlignCompound: false
24   PadOperators: false
25 AlignConsecutiveDeclarations:
26   Enabled: false
27   AcrossEmptyLines: false
28   AcrossComments: false
29   AlignCompound: false
30   PadOperators: false
31 AlignConsecutiveMacros:
32   Enabled: false
33   AcrossEmptyLines: false
34   AcrossComments: false
35   AlignCompound: false
36   PadOperators: false
37 AlignConsecutiveShortCaseStatements:
38   Enabled: false
39   AcrossEmptyLines: false
40   AcrossComments: false
41   AlignCaseColons: false
42 AlignEscapedNewlines: DontAlign
43 AlignOperands: DontAlign
44 AlignTrailingComments:
45   Kind: Never
46   OverEmptyLines: 0
47 AllowAllArgumentsOnNextLine: true
48 AllowAllParametersOfDeclarationOnNextLine: true
49 AllowBreakBeforeNoexceptSpecifier: Never
50 AllowShortBlocksOnASingleLine: Never
51 AllowShortCaseLabelsOnASingleLine: false
52 AllowShortEnumsOnASingleLine: false
53 AllowShortFunctionsOnASingleLine: None
54 AllowShortIfStatementsOnASingleLine: Never
55 AllowShortLambdasOnASingleLine: None
56 AllowShortLoopsOnASingleLine: false
57 AlwaysBreakAfterDefinitionReturnType: None
58 AlwaysBreakAfterReturnType: None
59 AlwaysBreakBeforeMultilineStrings: false
60 AlwaysBreakTemplateDeclarations: Yes
61 AttributeMacros:
62   - sjme_inline
63   - sjme_noOptimize
64   - sjme_attrArtificial
65   - sjme_attrCallback
66   - sjme_attrCheckReturn
67   - sjme_attrDeprecated
68   - sjme_attrFormatArg
69   - sjme_attrFormatOuter
70   - sjme_attrInNegativeOnePositive
71   - sjme_attrInNotNull
72   - sjme_attrInNullable
73   - sjme_attrInOutNotNull
74   - sjme_attrInPositive
75   - sjme_attrInPositiveNonZero
76   - sjme_attrInRange
77   - sjme_attrInValue
78   - sjme_attrOutNegativeOnePositive
79   - sjme_attrOutNotNull
80   - sjme_attrOutNotNullBuf
81   - sjme_attrOutNullable
82   - sjme_attrOutPositive
83   - sjme_attrOutPositiveNonZero
84   - sjme_attrOutRange
85   - sjme_attrReturnNever
86   - sjme_attrReturnNullable
87   - sjme_attrUnused
88   - sjme_attrUnusedEnum
89   - SJME_DYLIB_EXPORT
90   - SJME_DYLIB_IMPORT
91   - sjme_attrThreadCall
92   - JNIEXPORT
93   - JNIIMPORT
94   - JNICALL
95 BinPackArguments: false
96 BinPackParameters: false
97 BitFieldColonSpacing: Both
98 BraceWrapping:
99   AfterCaseLabel: true
100   AfterClass: true
101   AfterControlStatement: Always
102   AfterEnum: true
103   AfterFunction: true
104   AfterNamespace: true
105   AfterObjCDeclaration: false
106   AfterStruct: true
107   AfterUnion: true
108   AfterExternBlock: true
109   BeforeCatch: false
110   BeforeElse: true
111   BeforeLambdaBody: false
112   BeforeWhile: false
113   IndentBraces: false
114   SplitEmptyFunction: true
115   SplitEmptyRecord: true
116   SplitEmptyNamespace: true
117 BreakAfterAttributes: Leave
118 BreakAfterJavaFieldAnnotations: false
119 BreakArrays: true
120 BreakBeforeBinaryOperators: None
121 BreakBeforeBraces: Custom
122 BreakBeforeConceptDeclarations: Always
123 BreakBeforeInlineASMColon: OnlyMultiline
124 BreakBeforeTernaryOperators: false
125 BreakConstructorInitializers: AfterColon
126 BreakInheritanceList: AfterComma
127 BreakStringLiterals: true
128 ColumnLimit: 79
129 CompactNamespaces: false
130 ConstructorInitializerIndentWidth: 4
131 ContinuationIndentWidth: 4
132 Cpp11BracedListStyle: true
133 DerivePointerAlignment: false
134 DisableFormat: false
135 EmptyLineAfterAccessModifier: Never
136 EmptyLineBeforeAccessModifier: LogicalBlock
137 ExperimentalAutoDetectBinPacking: false
138 FixNamespaceComments: false
139 ForEachMacros:
140   - SJME_FOREACH_TODO
141 IfMacros:
142   - SJME_IF_TODO
143 IncludeBlocks: Preserve
144 IncludeCategories:
145   - Regex: .*
146     Priority: 1
147     SortPriority: 0
148     CaseSensitive: false
149 IncludeIsMainRegex: (Test)?$
150 IncludeIsMainSourceRegex: ""
151 IndentAccessModifiers: false
152 IndentCaseBlocks: false
153 IndentCaseLabels: true
154 IndentExternBlock: AfterExternBlock
155 IndentGotoLabels: false
156 IndentPPDirectives: BeforeHash
157 IndentRequiresClause: true
158 IndentWidth: 4
159 IndentWrappedFunctionNames: true
160 InsertBraces: false
161 InsertNewlineAtEOF: false
162 InsertTrailingCommas: None
163 IntegerLiteralSeparator:
164   Binary: 0
165   BinaryMinDigits: 0
166   Decimal: 0
167   DecimalMinDigits: 0
168   Hex: 0
169   HexMinDigits: 0
170 JavaScriptQuotes: Leave
171 JavaScriptWrapImports: true
172 KeepEmptyLinesAtEOF: false
173 KeepEmptyLinesAtTheStartOfBlocks: true
174 LambdaBodyIndentation: Signature
175 Language: Cpp
176 LineEnding: LF
177 MacroBlockBegin: ""
178 MacroBlockEnd: ""
179 MaxEmptyLinesToKeep: 1
180 NamespaceIndentation: All
181 ObjCBinPackProtocolList: Auto
182 ObjCBlockIndentWidth: 2
183 ObjCBreakBeforeNestedBlockParam: true
184 ObjCSpaceAfterProperty: false
185 ObjCSpaceBeforeProtocolList: true
186 PPIndentWidth: -1
187 PackConstructorInitializers: BinPack
188 PenaltyBreakAssignment: 2
189 PenaltyBreakBeforeFirstCallParameter: 19
190 PenaltyBreakComment: 1000000
191 PenaltyBreakFirstLessLess: 120
192 PenaltyBreakOpenParenthesis: 0
193 PenaltyBreakString: 1000
194 PenaltyBreakTemplateDeclaration: 10
195 PenaltyExcessCharacter: 1000000
196 PenaltyIndentedWhitespace: 0
197 PenaltyReturnTypeOnItsOwnLine: 10
198 PointerAlignment: Left
199 QualifierAlignment: Leave
200 ReferenceAlignment: Left
201 ReflowComments: false
202 RemoveBracesLLVM: false
203 RemoveParentheses: Leave
204 RemoveSemicolon: false
205 RequiresClausePosition: OwnLine
206 RequiresExpressionIndentation: OuterScope
207 SeparateDefinitionBlocks: Leave
208 ShortNamespaceLines: 1
209 SortIncludes: Never
210 SortJavaStaticImport: Before
211 SortUsingDeclarations: LexicographicNumeric
212 SpaceAfterCStyleCast: false
213 SpaceAfterLogicalNot: false
214 SpaceAfterTemplateKeyword: false
215 SpaceAroundPointerQualifiers: Default
216 SpaceBeforeAssignmentOperators: true
217 SpaceBeforeCaseColon: false
218 SpaceBeforeCpp11BracedList: false
219 SpaceBeforeCtorInitializerColon: true
220 SpaceBeforeInheritanceColon: true
221 SpaceBeforeJsonColon: false
222 SpaceBeforeParens: Custom
223 SpaceBeforeParensOptions:
224   AfterControlStatements: true
225   AfterForeachMacros: true
226   AfterFunctionDeclarationName: false
227   AfterFunctionDefinitionName: false
228   AfterIfMacros: true
229   AfterOverloadedOperator: false
230   AfterRequiresInClause: false
231   AfterRequiresInExpression: false
232   BeforeNonEmptyParentheses: false
233 SpaceBeforeRangeBasedForLoopColon: true
234 SpaceBeforeSquareBrackets: false
235 SpaceInEmptyBlock: false
236 SpacesBeforeTrailingComments: 0
237 SpacesInAngles: false
238 SpacesInContainerLiterals: false
239 SpacesInLineCommentPrefix:
240   Minimum: 1
241   Maximum: -1
242 SpacesInParens: Never
243 SpacesInParensOptions:
244   InConditionalStatements: false
245   InCStyleCasts: false
246   InEmptyParentheses: false
247   Other: false
248 SpacesInSquareBrackets: false
249 Standard: c++11
250 StatementAttributeLikeMacros:
251   - SJME_DEPRECATED
252 StatementMacros:
253   - SJME_REFPTR_CODE_BEGIN
254   - SJME_REFPTR_CODE_END
255   - SJME_REFPTR_VAR
256   - SJME_SCRITCHUI_DISPATCH_DECL
257   - SJME_SCRITCHUI_DISPATCH_CASE
258   - SJME_SCRITCHUI_DISPATCH_SWITCH_BEGIN
259   - SJME_SCRITCHUI_DISPATCH_SWITCH_END
260   - SJME_SCRITCHUI_DISPATCH_GENERIC_LISTENER
261   - SJME_SCRITCHUI_SERIAL_CHUNK
262   - SJME_SCRITCHUI_SERIAL_PASS
263   - SJME_SCRITCHUI_INVOKE_WAIT
264   - RECOVER_FONT
265 TabWidth: 4
266 UseTab: Always
267 VerilogBreakBetweenInstancePorts: true
268 WhitespaceSensitiveMacros:
269   - SJME_TOKEN_STRING
270   - SJME_TOKEN_STRING_PP
271   - SUD_STRUCT_DEF
272   - SDU_VAR
273   - SDU_VARP
274   - SJME_SCRITCHUI_SERIAL_CHUNK
275   - sjme_error_is
276   - CHECK_AND_FORWARD
277 AllowAllConstructorInitializersOnNextLine: false
278 SpaceInEmptyParentheses: false
279 SpacesInCStyleCastParentheses: false
280 SpacesInParentheses: false
281 TypenameMacros:
282   - SJME_LIST_NAME