Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit a05bb86

Browse files
~~Run Clang Format~~ Nuked Clang-Format Workflow (#35)
* Run Clang Format * Update Format Check CI * Use Dedicated clang-format check GH CI Runner * Use Already Working Workflow * Doitagain * Doitagain * Got Incorrect Workflow Earlier * Final Try 😢 * Serious Final Try 😢 * What Would Happen To Me Without AI * Fix YAML Syntax Error * .clang-format file fix * .clang-format file fix * Remove Unrecognized Keys * Fucking Nuke Clang-Format
1 parent 117d8f9 commit a05bb86

File tree

14 files changed

+522
-337
lines changed

14 files changed

+522
-337
lines changed

.clang-format

Lines changed: 260 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,131 +1,314 @@
11
---
2-
BasedOnStyle: Google
3-
AlignConsecutiveBitFields:
4-
Enabled: true
5-
AcrossEmptyLines: false
6-
AcrossComments: false
7-
AlignCompound: true
8-
PadOperators: true
2+
Language: Cpp
3+
AccessModifierOffset: -1
94
AlignAfterOpenBracket: BlockIndent
105
AlignArrayOfStructures: Right
116
AlignConsecutiveAssignments:
12-
Enabled: true
7+
Enabled: true
8+
AcrossEmptyLines: false
9+
AcrossComments: false
10+
AlignCompound: true
11+
AlignFunctionDeclarations: false
12+
13+
PadOperators: true
14+
AlignConsecutiveBitFields:
15+
Enabled: true
1316
AcrossEmptyLines: false
14-
AcrossComments: false
15-
PadOperators: true
16-
AlignCompound: true
17+
AcrossComments: false
18+
AlignCompound: true
19+
AlignFunctionDeclarations: false
20+
21+
PadOperators: true
1722
AlignConsecutiveDeclarations:
18-
Enabled: true
23+
Enabled: true
1924
AcrossEmptyLines: false
20-
AcrossComments: false
21-
AlignCompound: true
22-
PadOperators: true
23-
AlignOperands: AlignAfterOperator
24-
AlignEscapedNewlines: Right
25+
AcrossComments: false
26+
AlignCompound: true
27+
AlignFunctionDeclarations: true
28+
29+
PadOperators: true
2530
AlignConsecutiveMacros:
26-
Enabled: true
31+
Enabled: true
32+
AcrossEmptyLines: false
33+
AcrossComments: false
34+
AlignCompound: true
35+
AlignFunctionDeclarations: false
36+
37+
PadOperators: true
38+
AlignConsecutiveTableGenBreakingDAGArgColons:
39+
Enabled: false
2740
AcrossEmptyLines: false
28-
AcrossComments: false
29-
AlignCompound: true
30-
PadOperators: true
31-
AlignConsecutiveShortCaseStatements:
32-
Enabled: true
41+
AcrossComments: false
42+
AlignCompound: false
43+
AlignFunctionDeclarations: false
44+
45+
PadOperators: false
46+
AlignConsecutiveTableGenCondOperatorColons:
47+
Enabled: false
3348
AcrossEmptyLines: false
34-
AcrossComments: false
35-
AlignCaseColons: true
49+
AcrossComments: false
50+
AlignCompound: false
51+
AlignFunctionDeclarations: false
52+
53+
PadOperators: false
54+
AlignConsecutiveTableGenDefinitionColons:
55+
Enabled: false
56+
AcrossEmptyLines: false
57+
AcrossComments: false
58+
AlignCompound: false
59+
AlignFunctionDeclarations: false
60+
61+
PadOperators: false
62+
AlignEscapedNewlines: Right
63+
AlignOperands: AlignAfterOperator
3664
AlignTrailingComments:
37-
Kind: Always
38-
OverEmptyLines: 2
65+
Kind: Always
66+
OverEmptyLines: 2
3967
AllowAllArgumentsOnNextLine: false
4068
AllowAllParametersOfDeclarationOnNextLine: false
69+
AllowBreakBeforeNoexceptSpecifier: Never
4170
AllowShortBlocksOnASingleLine: Empty
42-
AllowShortFunctionsOnASingleLine: Empty
71+
AllowShortCaseExpressionOnASingleLine: true
4372
AllowShortCaseLabelsOnASingleLine: false
73+
AllowShortCompoundRequirementOnASingleLine: true
4474
AllowShortEnumsOnASingleLine: false
75+
AllowShortFunctionsOnASingleLine: Empty
4576
AllowShortIfStatementsOnASingleLine: Never
77+
AllowShortLambdasOnASingleLine: All
4678
AllowShortLoopsOnASingleLine: false
47-
AlwaysBreakAfterReturnType: None
79+
AllowShortNamespacesOnASingleLine: false
80+
AlwaysBreakAfterDefinitionReturnType: None
4881
AlwaysBreakBeforeMultilineStrings: true
4982
AttributeMacros:
5083
- FORCE_INLINE
5184
- PACKED
5285
BinPackArguments: false
53-
BinPackParameters: false
86+
BinPackParameters: OnePerLine
87+
BitFieldColonSpacing: Both
88+
BracedInitializerIndentWidth: 4
5489
BraceWrapping:
55-
AfterCaseLabel: false
56-
AfterClass: false
90+
AfterCaseLabel: false
91+
AfterClass: false
5792
AfterControlStatement: Never
58-
AfterEnum: false
59-
AfterFunction: false
60-
AfterNamespace: false
61-
AfterObjCDeclaration: false
62-
AfterStruct: false
63-
AfterUnion: false
93+
AfterEnum: false
6494
AfterExternBlock: false
65-
BeforeElse: false
66-
BeforeWhile: false
67-
IndentBraces: true
68-
BracedInitializerIndentWidth: 4
69-
BreakArrays: false
95+
AfterFunction: false
96+
AfterNamespace: false
97+
AfterObjCDeclaration: false
98+
AfterStruct: false
99+
AfterUnion: false
100+
BeforeCatch: false
101+
BeforeElse: false
102+
BeforeLambdaBody: false
103+
BeforeWhile: false
104+
IndentBraces: false
105+
SplitEmptyFunction: true
106+
SplitEmptyRecord: true
107+
SplitEmptyNamespace: true
108+
BreakAdjacentStringLiterals: true
109+
BreakAfterAttributes: Leave
110+
BreakAfterJavaFieldAnnotations: false
111+
BreakAfterReturnType: None
112+
BreakArrays: false
70113
BreakBeforeBinaryOperators: None
114+
BreakBeforeConceptDeclarations: Always
71115
BreakBeforeBraces: Attach
72116
BreakBeforeInlineASMColon: Always
73117
BreakBeforeTernaryOperators: false
118+
BreakBinaryOperations: Never
119+
BreakConstructorInitializers: BeforeColon
120+
BreakFunctionDefinitionParameters: false
121+
BreakInheritanceList: BeforeColon
74122
BreakStringLiterals: true
75-
ColumnLimit: 120
123+
BreakTemplateDeclarations: Yes
124+
ColumnLimit: 120
125+
CommentPragmas: '.*'
126+
CompactNamespaces: false
127+
ConstructorInitializerIndentWidth: 4
76128
ContinuationIndentWidth: 4
77-
IncludeBlocks: Regroup
129+
Cpp11BracedListStyle: true
130+
DerivePointerAlignment: true
131+
DisableFormat: false
132+
EmptyLineAfterAccessModifier: Never
133+
EmptyLineBeforeAccessModifier: LogicalBlock
134+
ExperimentalAutoDetectBinPacking: false
135+
FixNamespaceComments: true
136+
ForEachMacros:
137+
- foreach
138+
- Q_FOREACH
139+
- BOOST_FOREACH
140+
IfMacros:
141+
- KJ_IF_MAYBE
142+
IncludeBlocks: Regroup
143+
IncludeCategories:
144+
- Regex: '^<ext/.*\.h>'
145+
Priority: 2
146+
SortPriority: 0
147+
CaseSensitive: false
148+
- Regex: '^<.*\.h>'
149+
Priority: 1
150+
SortPriority: 0
151+
CaseSensitive: false
152+
- Regex: '^<.*'
153+
Priority: 2
154+
SortPriority: 0
155+
CaseSensitive: false
156+
- Regex: '.*'
157+
Priority: 3
158+
SortPriority: 0
159+
CaseSensitive: false
160+
IncludeIsMainRegex: '([-_](test|unittest))?$'
161+
IncludeIsMainSourceRegex: ''
162+
IndentAccessModifiers: false
78163
IndentCaseBlocks: false
79164
IndentCaseLabels: true
165+
IndentExportBlock: true
80166
IndentExternBlock: Indent
81167
IndentGotoLabels: false
82168
IndentPPDirectives: AfterHash
83-
IndentWidth: 4
169+
IndentRequiresClause: true
170+
IndentWidth: 4
84171
IndentWrappedFunctionNames: true
85-
InsertBraces: false
86-
KeepEmptyLinesAtEOF: false
87-
KeepEmptyLinesAtTheStartOfBlocks: false
88-
LineEnding: LF
172+
InsertBraces: false
173+
InsertNewlineAtEOF: false
174+
InsertTrailingCommas: None
175+
IntegerLiteralSeparator:
176+
Binary: 0
177+
BinaryMinDigits: 0
178+
Decimal: 0
179+
DecimalMinDigits: 0
180+
Hex: 0
181+
HexMinDigits: 0
182+
JavaScriptQuotes: Leave
183+
JavaScriptWrapImports: true
184+
KeepEmptyLines:
185+
AtEndOfFile: false
186+
AtStartOfBlock: false
187+
AtStartOfFile: true
188+
KeepFormFeed: false
189+
LambdaBodyIndentation: Signature
190+
LineEnding: LF
191+
MacroBlockBegin: ''
192+
MacroBlockEnd: ''
89193
Macros:
90-
- ALLOCATE(type, n) (type*)calloc(sizeof(type), n)
91-
- FREE(x) free((void*)x)
92-
- REALLOCATE(oldptr, type, n) (type*)realloc(oldptr, sizeof(type)*n)
194+
- 'ALLOCATE(type, n) (type*)calloc(sizeof(type), n)'
195+
- 'FREE(x) free((void*)x)'
196+
- 'REALLOCATE(oldptr, type, n) (type*)realloc(oldptr, sizeof(type)*n)'
197+
MainIncludeChar: Quote
93198
MaxEmptyLinesToKeep: 4
94-
PPIndentWidth: 4
199+
NamespaceIndentation: None
200+
ObjCBinPackProtocolList: Never
201+
ObjCBlockIndentWidth: 2
202+
ObjCBreakBeforeNestedBlockParam: true
203+
ObjCSpaceAfterProperty: false
204+
ObjCSpaceBeforeProtocolList: true
205+
PackConstructorInitializers: NextLine
206+
PenaltyBreakAssignment: 2
207+
PenaltyBreakBeforeFirstCallParameter: 1
208+
PenaltyBreakBeforeMemberAccess: 150
209+
PenaltyBreakComment: 300
210+
PenaltyBreakFirstLessLess: 120
211+
PenaltyBreakOpenParenthesis: 0
212+
PenaltyBreakScopeResolution: 500
213+
PenaltyBreakString: 1000
214+
PenaltyBreakTemplateDeclaration: 10
215+
PenaltyExcessCharacter: 1000000
216+
PenaltyIndentedWhitespace: 0
217+
PenaltyReturnTypeOnItsOwnLine: 200
95218
PointerAlignment: Right
219+
PPIndentWidth: 4
96220
QualifierAlignment: Leave
221+
RawStringFormats:
222+
- Language: Cpp
223+
Delimiters:
224+
- cc
225+
- CC
226+
- cpp
227+
- Cpp
228+
- CPP
229+
- 'c++'
230+
- 'C++'
231+
CanonicalDelimiter: ''
232+
BasedOnStyle: google
233+
- Language: TextProto
234+
Delimiters:
235+
- pb
236+
- PB
237+
- proto
238+
- PROTO
239+
EnclosingFunctions:
240+
- EqualsProto
241+
- EquivToProto
242+
- PARSE_PARTIAL_TEXT_PROTO
243+
- PARSE_TEST_PROTO
244+
- PARSE_TEXT_PROTO
245+
- ParseTextOrDie
246+
- ParseTextProtoOrDie
247+
- ParseTestProto
248+
- ParsePartialTestProto
249+
CanonicalDelimiter: pb
250+
BasedOnStyle: google
97251
ReferenceAlignment: Right
98-
ReflowComments: true
99-
RemoveParentheses: Leave
100-
SortIncludes: Never
252+
ReflowComments: Always
253+
RemoveBracesLLVM: false
254+
RemoveEmptyLinesInUnwrappedLines: false
255+
RemoveSemicolon: false
256+
RequiresClausePosition: OwnLine
257+
RequiresExpressionIndentation: OuterScope
258+
SeparateDefinitionBlocks: Leave
259+
ShortNamespaceLines: 1
260+
SkipMacroDefinitionBody: false
261+
SortIncludes: Never
262+
SortJavaStaticImport: Before
263+
SortUsingDeclarations: LexicographicNumeric
101264
SpaceAfterCStyleCast: false
102265
SpaceAfterLogicalNot: false
266+
SpaceAfterTemplateKeyword: true
103267
SpaceAroundPointerQualifiers: Default
104268
SpaceBeforeAssignmentOperators: true
105269
SpaceBeforeCaseColon: true
106270
SpaceBeforeCpp11BracedList: true
271+
SpaceBeforeCtorInitializerColon: true
272+
SpaceBeforeInheritanceColon: true
273+
SpaceBeforeJsonColon: false
107274
SpaceBeforeParens: ControlStatements
108275
SpaceBeforeParensOptions:
109276
AfterControlStatements: true
110277
AfterForeachMacros: true
111-
AfterFunctionDeclarationName: true
112-
AfterFunctionDefinitionName: true
113-
AfterIfMacros: true
278+
AfterFunctionDefinitionName: false
279+
AfterFunctionDeclarationName: false
280+
AfterIfMacros: true
281+
AfterOverloadedOperator: false
282+
AfterPlacementOperator: true
283+
AfterRequiresInClause: false
284+
AfterRequiresInExpression: false
285+
BeforeNonEmptyParentheses: false
286+
SpaceBeforeRangeBasedForLoopColon: true
114287
SpaceBeforeSquareBrackets: false
115288
SpaceInEmptyBlock: false
116289
SpacesBeforeTrailingComments: 1
117-
UseTab: Never
118-
TabWidth: 4
119-
Standard: Latest
290+
SpacesInAngles: Never
120291
SpacesInContainerLiterals: true
121292
SpacesInLineCommentPrefix:
122-
Maximum: -1
123-
Minimum: 1
124-
SpacesInParens: Never
293+
Minimum: 1
294+
Maximum: -1
295+
SpacesInParens: Never
296+
SpacesInParensOptions:
297+
ExceptDoubleParentheses: false
298+
InCStyleCasts: false
299+
InConditionalStatements: false
300+
InEmptyParentheses: false
301+
Other: false
125302
SpacesInSquareBrackets: false
303+
Standard: Latest
126304
StatementAttributeLikeMacros:
127305
- PACKED
128306
- FORCE_INLINE
307+
StatementMacros:
308+
- Q_UNUSED
309+
- QT_REQUIRE_VERSION
310+
TableGenBreakInsideDAGArg: DontBreak
311+
TabWidth: 4
129312
TypeNames:
130313
- Char
131314
- ZString
@@ -145,5 +328,14 @@ TypeNames:
145328
- Addr4
146329
- Addr8
147330
- UintPtr
148-
CommentPragmas: .*
149-
Cpp11BracedListStyle: true
331+
UseTab: Never
332+
VerilogBreakBetweenInstancePorts: true
333+
WhitespaceSensitiveMacros:
334+
- BOOST_PP_STRINGIZE
335+
- CF_SWIFT_NAME
336+
- NS_SWIFT_NAME
337+
- PP_STRINGIZE
338+
- STRINGIZE
339+
WrapNamespaceBodyWithEmptyLines: Leave
340+
...
341+

0 commit comments

Comments
 (0)