Indentations break the feed.
[SquirrelJME.git] / emulators / emulator-base-native / .clang-format
blobbaca18d173d663883b5dbc9d5ffdfd93781a0650
1 ---
2 Language: Cpp
3 BasedOnStyle: LLVM
4 AccessModifierOffset: -4
5 AlignAfterOpenBracket: DontAlign
6 AlignConsecutiveAssignments: false
7 AlignConsecutiveDeclarations: false
8 AlignEscapedNewlines: DontAlign
9 AlignOperands: false
10 AlignTrailingComments: false
11 AllowAllConstructorInitializersOnNextLine: false
12 AllowShortBlocksOnASingleLine: false
13 AllowShortEnumsOnASingleLine: false
14 AllowShortFunctionsOnASingleLine: None
15 AllowShortIfStatementsOnASingleLine: false
16 AllowShortLambdasOnASingleLine: None
17 AlwaysBreakAfterDefinitionReturnType: false
18 AlwaysBreakTemplateDeclarations: No
19 AttributeMacros: 
20   - sjme_inline
21   - sjme_noOptimize
22   - sjme_attrArtificial
23   - sjme_attrCallback
24   - sjme_attrCheckReturn
25   - sjme_attrDeprecated
26   - sjme_attrFormatArg
27   - sjme_attrFormatOuter
28   - sjme_attrInNegativeOnePositive
29   - sjme_attrInNotNull
30   - sjme_attrInNullable
31   - sjme_attrInOutNotNull
32   - sjme_attrInPositive
33   - sjme_attrInPositiveNonZero
34   - sjme_attrInRange
35   - sjme_attrInValue
36   - sjme_attrOutNegativeOnePositive
37   - sjme_attrOutNotNull
38   - sjme_attrOutNotNullBuf
39   - sjme_attrOutNullable
40   - sjme_attrOutPositive
41   - sjme_attrOutPositiveNonZero
42   - sjme_attrOutRange
43   - sjme_attrReturnNever
44   - sjme_attrReturnNullable
45   - sjme_attrUnused
46   - sjme_attrUnusedEnum
47   - SJME_DYLIB_EXPORT
48   - SJME_DYLIB_IMPORT
49   - sjme_attrThreadCall
50   - JNIEXPORT
51   - JNIIMPORT
52   - JNICALL
53 BinPackParameters: false
54 BraceWrapping: 
55   AfterCaseLabel: true
56   AfterClass: true
57   AfterControlStatement: true
58   AfterEnum: true
59   AfterFunction: true
60   AfterNamespace: true
61   AfterStruct: true
62   AfterUnion: true
63   AfterExternBlock: true
64   BeforeCatch: true
65   BeforeElse: true
66   BeforeLambdaBody: true
67   BeforeWhile: false
68   SplitEmptyFunction: true
69   SplitEmptyRecord: true
70   SplitEmptyNamespace: true
71 BreakAfterAttributes: Leave
72 BreakBeforeBraces: Custom
73 BreakBeforeTernaryOperators: false
74 BreakConstructorInitializers: AfterColon
75 BreakConstructorInitializersBeforeComma: false
76 BreakInheritanceList: AfterComma
77 ColumnLimit: 79
78 ConstructorInitializerAllOnOneLineOrOnePerLine: false
79 FixNamespaceComments: false
80 ForEachMacros: 
81   - SJME_FOREACH_TODO
82 IfMacros: 
83   - SJME_IF_TODO
84 IncludeCategories: 
85   - Regex: '^<.*'
86     Priority: 1
87   - Regex: '^".*'
88     Priority: 2
89   - Regex: '.*'
90     Priority: 3
91 IncludeIsMainRegex: '([-_](test|unittest))?$'
92 IndentCaseBlocks: true
93 IndentCaseLabels: true
94 IndentGotoLabels: false
95 IndentWidth: 4
96 InsertNewlineAtEOF: true
97 LineEnding: LF
98 MacroBlockBegin: ''
99 MacroBlockEnd: ''
100 PenaltyBreakComment: 1000000
101 PenaltyReturnTypeOnItsOwnLine: 10
102 PointerAlignment: Left
103 ReferenceAlignment: Left
104 ReflowComments: false
105 SortIncludes: Never
106 SpaceBeforeParensOptions: 
107   AfterControlStatements: true
108   AfterForeachMacros: true
109   AfterFunctionDeclarationName: false
110   AfterFunctionDefinitionName: false
111   AfterIfMacros: true
112   AfterOverloadedOperator: false
113   AfterRequiresInClause: false
114   AfterRequiresInExpression: false
115   BeforeNonEmptyParentheses: false
116 SpaceInEmptyParentheses: false
117 SpacesInAngles: false
118 SpacesInConditionalStatement: false
119 SpacesInContainerLiterals: false
120 SpacesInCStyleCastParentheses: false
121 SpacesInParensOptions: 
122   InConditionalStatements: false
123   InCStyleCasts: false
124   InEmptyParentheses: false
125   Other: false
126 SpacesInParentheses: false
127 Standard: c++11
128 StatementAttributeLikeMacros: 
129   - SJME_DEPRECATED
130 StatementMacros: 
131   - SJME_REFPTR_CODE_BEGIN
132   - SJME_REFPTR_CODE_END
133   - SJME_REFPTR_VAR
134   - SJME_SCRITCHUI_DISPATCH_DECL
135   - SJME_SCRITCHUI_DISPATCH_CASE
136   - SJME_SCRITCHUI_DISPATCH_SWITCH_BEGIN
137   - SJME_SCRITCHUI_DISPATCH_SWITCH_END
138   - SJME_SCRITCHUI_DISPATCH_GENERIC_LISTENER
139   - SJME_SCRITCHUI_SERIAL_CHUNK
140   - SJME_SCRITCHUI_SERIAL_PASS
141   - SJME_SCRITCHUI_INVOKE_WAIT
142   - RECOVER_FONT
143 TabWidth: 4
144 TypenameMacros: 
145   - SJME_LIST_NAME
146 UseTab: Always
147 WhitespaceSensitiveMacros: 
148   - SJME_TOKEN_STRING
149   - SJME_TOKEN_STRING_PP
150   - SUD_STRUCT_DEF
151   - SDU_VAR
152   - SDU_VARP
153   - SJME_SCRITCHUI_SERIAL_CHUNK
154   - sjme_error_is
155   - CHECK_AND_FORWARD