Skip to content

Commit d109c79

Browse files
committed
[clang-format] Update config to latest Aseprite version
1 parent 3a16b2d commit d109c79

File tree

1 file changed

+165
-66
lines changed

1 file changed

+165
-66
lines changed

.clang-format

+165-66
Original file line numberDiff line numberDiff line change
@@ -1,124 +1,223 @@
11
---
22
AccessModifierOffset: -2
33
AlignAfterOpenBracket: Align
4-
AlignConsecutiveMacros: AcrossEmptyLines
5-
AlignConsecutiveAssignments: None
6-
AlignConsecutiveBitFields: None
7-
AlignConsecutiveDeclarations: None
4+
AlignArrayOfStructures: Left
5+
AlignConsecutiveAssignments:
6+
AcrossComments: false
7+
AcrossEmptyLines: false
8+
AlignCompound: false
9+
AlignFunctionPointers: false
10+
Enabled: false
11+
PadOperators: true
12+
AlignConsecutiveBitFields:
13+
AcrossComments: false
14+
AcrossEmptyLines: false
15+
AlignCompound: false
16+
AlignFunctionPointers: false
17+
Enabled: false
18+
PadOperators: true
19+
AlignConsecutiveDeclarations:
20+
AcrossComments: false
21+
AcrossEmptyLines: false
22+
AlignCompound: false
23+
AlignFunctionPointers: false
24+
Enabled: false
25+
PadOperators: true
26+
AlignConsecutiveMacros:
27+
AcrossComments: false
28+
AcrossEmptyLines: true
29+
AlignCompound: false
30+
AlignFunctionPointers: false
31+
Enabled: true
32+
PadOperators: true
33+
AlignConsecutiveShortCaseStatements:
34+
AcrossComments: true
35+
AcrossEmptyLines: true
36+
AlignCaseArrows: true
37+
AlignCaseColons: false
38+
Enabled: true
39+
AlignConsecutiveTableGenCondOperatorColons:
40+
AcrossComments: false
41+
AcrossEmptyLines: false
42+
AlignCompound: false
43+
AlignFunctionPointers: false
44+
Enabled: false
45+
PadOperators: false
46+
AlignConsecutiveTableGenDefinitionColons:
47+
AcrossComments: false
48+
AcrossEmptyLines: false
49+
AlignCompound: false
50+
AlignFunctionPointers: false
51+
Enabled: false
52+
PadOperators: false
853
AlignEscapedNewlines: Right
9-
AlignOperands: Align
10-
AlignTrailingComments: true
11-
AllowAllArgumentsOnNextLine: true
12-
AllowAllConstructorInitializersOnNextLine: true
13-
AllowAllParametersOfDeclarationOnNextLine: true
14-
AllowShortEnumsOnASingleLine: true
54+
AlignOperands: Align
55+
AlignTrailingComments:
56+
Kind: Always
57+
OverEmptyLines: 0
58+
AllowAllArgumentsOnNextLine: false
59+
AllowAllParametersOfDeclarationOnNextLine: false
60+
AllowBreakBeforeNoexceptSpecifier: Never
1561
AllowShortBlocksOnASingleLine: Never
16-
AllowShortCaseLabelsOnASingleLine: false
62+
AllowShortCaseExpressionOnASingleLine: true
63+
AllowShortCaseLabelsOnASingleLine: true
64+
AllowShortCompoundRequirementOnASingleLine: true
65+
AllowShortEnumsOnASingleLine: true
1766
AllowShortFunctionsOnASingleLine: InlineOnly
18-
AllowShortLambdasOnASingleLine: All
1967
AllowShortIfStatementsOnASingleLine: Never
68+
AllowShortLambdasOnASingleLine: All
2069
AllowShortLoopsOnASingleLine: false
2170
AlwaysBreakAfterDefinitionReturnType: None
22-
AlwaysBreakAfterReturnType: None
2371
AlwaysBreakBeforeMultilineStrings: false
24-
AlwaysBreakTemplateDeclarations: Yes
2572
BinPackArguments: false
2673
BinPackParameters: false
74+
BitFieldColonSpacing: Both
2775
BraceWrapping:
28-
AfterCaseLabel: false
29-
AfterClass: false
76+
AfterCaseLabel: false
77+
AfterClass: false
3078
AfterControlStatement: Never
31-
AfterEnum: false
32-
AfterFunction: true
33-
AfterNamespace: false
34-
AfterObjCDeclaration: false
35-
AfterStruct: false
36-
AfterUnion: false
79+
AfterEnum: false
3780
AfterExternBlock: false
38-
BeforeCatch: true
39-
BeforeElse: true
81+
AfterFunction: true
82+
AfterNamespace: false
83+
AfterObjCDeclaration: false
84+
AfterStruct: false
85+
AfterUnion: false
86+
BeforeCatch: true
87+
BeforeElse: true
4088
BeforeLambdaBody: false
41-
BeforeWhile: false
42-
IndentBraces: false
89+
BeforeWhile: false
90+
IndentBraces: false
4391
SplitEmptyFunction: true
4492
SplitEmptyRecord: false
4593
SplitEmptyNamespace: false
94+
BreakAdjacentStringLiterals: true
95+
BreakAfterAttributes: Leave
96+
BreakAfterReturnType: None
97+
BreakArrays: true
4698
BreakBeforeBinaryOperators: None
47-
BreakBeforeConceptDeclarations: true
99+
BreakBeforeConceptDeclarations: Always
48100
BreakBeforeBraces: Custom
49-
BreakBeforeInheritanceComma: false
50-
BreakInheritanceList: AfterComma
101+
BreakBeforeInlineASMColon: OnlyMultiline
51102
BreakBeforeTernaryOperators: false
52-
BreakConstructorInitializersBeforeComma: false
53103
BreakConstructorInitializers: BeforeComma
104+
BreakFunctionDefinitionParameters: false
105+
BreakInheritanceList: AfterComma
54106
BreakStringLiterals: false
55-
ColumnLimit: 80
107+
BreakTemplateDeclarations: Yes
108+
ColumnLimit: 100
56109
CompactNamespaces: true
57-
ConstructorInitializerAllOnOneLineOrOnePerLine: false
58110
ConstructorInitializerIndentWidth: 2
59111
ContinuationIndentWidth: 2
60112
Cpp11BracedListStyle: false
61-
DeriveLineEnding: false
62113
DerivePointerAlignment: false
63-
DisableFormat: false
114+
DisableFormat: false
115+
EmptyLineAfterAccessModifier: Never
64116
EmptyLineBeforeAccessModifier: LogicalBlock
65117
ExperimentalAutoDetectBinPacking: false
66118
FixNamespaceComments: true
67-
IncludeBlocks: Preserve
68-
IndentCaseLabels: true
119+
IncludeBlocks: Preserve
120+
IndentAccessModifiers: false
69121
IndentCaseBlocks: false
122+
IndentCaseLabels: true
123+
IndentExternBlock: AfterExternBlock
70124
IndentGotoLabels: true
71125
IndentPPDirectives: BeforeHash
72-
IndentExternBlock: AfterExternBlock
73-
IndentRequires: false
74-
IndentWidth: 2
126+
IndentRequiresClause: false
127+
IndentWidth: 2
75128
IndentWrappedFunctionNames: false
129+
InsertBraces: false
130+
InsertNewlineAtEOF: false
76131
InsertTrailingCommas: None
77-
KeepEmptyLinesAtTheStartOfBlocks: false
132+
IntegerLiteralSeparator:
133+
Binary: 0
134+
BinaryMinDigits: 0
135+
Decimal: 0
136+
DecimalMinDigits: 0
137+
Hex: 0
138+
HexMinDigits: 0
139+
KeepEmptyLines:
140+
AtEndOfFile: false
141+
AtStartOfBlock: false
142+
AtStartOfFile: true
143+
LambdaBodyIndentation: Signature
144+
LineEnding: LF
145+
MacroBlockBegin: ''
146+
MacroBlockEnd: ''
147+
MainIncludeChar: Quote
78148
MaxEmptyLinesToKeep: 1
79149
NamespaceIndentation: None
80150
ObjCBinPackProtocolList: Auto
81151
ObjCBlockIndentWidth: 2
82152
ObjCBreakBeforeNestedBlockParam: true
83153
ObjCSpaceAfterProperty: false
84154
ObjCSpaceBeforeProtocolList: true
85-
PenaltyBreakAssignment: 2
86-
PenaltyBreakBeforeFirstCallParameter: 19
87-
PenaltyBreakComment: 300
88-
PenaltyBreakFirstLessLess: 120
89-
PenaltyBreakString: 1000
90-
PenaltyBreakTemplateDeclaration: 10
91-
PenaltyExcessCharacter: 1000000
92-
PenaltyReturnTypeOnItsOwnLine: 1000
155+
PackConstructorInitializers: CurrentLine
156+
PenaltyBreakAssignment: 50
157+
PenaltyBreakBeforeFirstCallParameter: 2
158+
PenaltyBreakComment: 30
159+
PenaltyBreakFirstLessLess: 12
160+
PenaltyBreakOpenParenthesis: 0
161+
PenaltyBreakScopeResolution: 500
162+
PenaltyBreakString: 100
163+
PenaltyBreakTemplateDeclaration: 1
164+
PenaltyExcessCharacter: 100
93165
PenaltyIndentedWhitespace: 0
166+
PenaltyReturnTypeOnItsOwnLine: 200
94167
PointerAlignment: Left
95-
ReflowComments: false
96-
SortIncludes: true
97-
SortUsingDeclarations: true
168+
PPIndentWidth: -1
169+
QualifierAlignment: Left
170+
ReferenceAlignment: Pointer
171+
ReflowComments: true
172+
RemoveBracesLLVM: false
173+
RemoveParentheses: Leave
174+
RemoveSemicolon: false
175+
RequiresClausePosition: OwnLine
176+
RequiresExpressionIndentation: OuterScope
177+
SeparateDefinitionBlocks: Leave
178+
ShortNamespaceLines: 1
179+
SkipMacroDefinitionBody: false
180+
SortIncludes: CaseSensitive
181+
SortUsingDeclarations: LexicographicNumeric
98182
SpaceAfterCStyleCast: false
99183
SpaceAfterLogicalNot: false
100184
SpaceAfterTemplateKeyword: false
185+
SpaceAroundPointerQualifiers: Default
101186
SpaceBeforeAssignmentOperators: true
102187
SpaceBeforeCaseColon: false
103188
SpaceBeforeCpp11BracedList: false
104189
SpaceBeforeCtorInitializerColon: true
105190
SpaceBeforeInheritanceColon: true
191+
SpaceBeforeJsonColon: false
106192
SpaceBeforeParens: ControlStatements
107-
SpaceAroundPointerQualifiers: Default
193+
SpaceBeforeParensOptions:
194+
AfterControlStatements: true
195+
AfterForeachMacros: true
196+
AfterFunctionDefinitionName: false
197+
AfterFunctionDeclarationName: false
198+
AfterIfMacros: true
199+
AfterOverloadedOperator: false
200+
AfterPlacementOperator: true
201+
AfterRequiresInClause: false
202+
AfterRequiresInExpression: false
203+
BeforeNonEmptyParentheses: false
108204
SpaceBeforeRangeBasedForLoopColon: true
109-
SpaceInEmptyBlock: true
110-
SpaceInEmptyParentheses: false
111-
SpacesBeforeTrailingComments: 2
112-
SpacesInAngles: false
113-
SpacesInConditionalStatement: false
205+
SpaceBeforeSquareBrackets: false
206+
SpaceInEmptyBlock: false
207+
SpacesBeforeTrailingComments: 1
208+
SpacesInAngles: Never
114209
SpacesInContainerLiterals: false
115-
SpacesInCStyleCastParentheses: false
116-
SpacesInParentheses: false
210+
SpacesInLineCommentPrefix:
211+
Minimum: 1
212+
Maximum: -1
213+
SpacesInParens: Never
214+
SpacesInParensOptions:
215+
ExceptDoubleParentheses: false
216+
InCStyleCasts: false
217+
InConditionalStatements: false
218+
InEmptyParentheses: false
219+
Other: false
117220
SpacesInSquareBrackets: false
118-
SpaceBeforeSquareBrackets: false
119-
BitFieldColonSpacing: Both
120-
Standard: c++17
121-
TabWidth: 8
122-
UseCRLF: false
123-
UseTab: Never
124-
...
221+
Standard: c++17
222+
TabWidth: 8
223+
UseTab: Never

0 commit comments

Comments
 (0)