Skip to content

Commit ca04432

Browse files
authored
Merge pull request seqan#12 from eseiler/infra/ci2
[TEST] Add more tests
2 parents 8e0137e + 0ab513a commit ca04432

4 files changed

Lines changed: 245 additions & 65 deletions

File tree

.clang-format

Lines changed: 165 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,114 @@
22
# SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
33
# SPDX-License-Identifier: CC0-1.0
44

5-
# Format all files
6-
# find . -iname "*.hpp" | xargs clang-format-15 --style=file -i
5+
# From top-level directory:
6+
# Format all files
7+
# find ${PWD} -iname "*.hpp" -not -path ${PWD}/build | xargs clang-format-20 --style=file -i
8+
# Format staged file
9+
# git diff --name-only HEAD --diff-filter=ACMRT | grep "\.hpp" | xargs clang-format-20 --style=file -i
710
---
811
Language: Cpp
912
AccessModifierOffset: -4
1013
AlignAfterOpenBracket: Align
1114
AlignArrayOfStructures: None
12-
AlignConsecutiveMacros: None
13-
AlignConsecutiveAssignments: None
14-
AlignConsecutiveBitFields: None
15-
AlignConsecutiveDeclarations: None
15+
AlignConsecutiveAssignments:
16+
Enabled: false
17+
AcrossEmptyLines: false
18+
AcrossComments: false
19+
AlignCompound: false
20+
AlignFunctionDeclarations: false
21+
AlignFunctionPointers: false
22+
PadOperators: true
23+
AlignConsecutiveBitFields:
24+
Enabled: false
25+
AcrossEmptyLines: false
26+
AcrossComments: false
27+
AlignCompound: false
28+
AlignFunctionDeclarations: false
29+
AlignFunctionPointers: false
30+
PadOperators: true
31+
AlignConsecutiveDeclarations:
32+
Enabled: false
33+
AcrossEmptyLines: false
34+
AcrossComments: false
35+
AlignCompound: false
36+
AlignFunctionDeclarations: false
37+
AlignFunctionPointers: false
38+
PadOperators: true
39+
AlignConsecutiveMacros:
40+
Enabled: false
41+
AcrossEmptyLines: false
42+
AcrossComments: false
43+
AlignCompound: false
44+
AlignFunctionDeclarations: false
45+
AlignFunctionPointers: false
46+
PadOperators: true
47+
AlignConsecutiveShortCaseStatements:
48+
Enabled: false
49+
AcrossEmptyLines: false
50+
AcrossComments: false
51+
AlignCaseArrows: false
52+
AlignCaseColons: false
53+
AlignConsecutiveTableGenBreakingDAGArgColons:
54+
Enabled: false
55+
AcrossEmptyLines: false
56+
AcrossComments: false
57+
AlignCompound: false
58+
AlignFunctionDeclarations: false
59+
AlignFunctionPointers: false
60+
PadOperators: true
61+
AlignConsecutiveTableGenCondOperatorColons:
62+
Enabled: false
63+
AcrossEmptyLines: false
64+
AcrossComments: false
65+
AlignCompound: false
66+
AlignFunctionDeclarations: false
67+
AlignFunctionPointers: false
68+
PadOperators: true
69+
AlignConsecutiveTableGenDefinitionColons:
70+
Enabled: false
71+
AcrossEmptyLines: false
72+
AcrossComments: false
73+
AlignCompound: false
74+
AlignFunctionDeclarations: false
75+
AlignFunctionPointers: false
76+
PadOperators: true
1677
AlignEscapedNewlines: Right
1778
AlignOperands: AlignAfterOperator
18-
AlignTrailingComments: true
79+
AlignTrailingComments:
80+
Kind: Always
81+
OverEmptyLines: 0
1982
AllowAllArgumentsOnNextLine: false
2083
AllowAllParametersOfDeclarationOnNextLine: false
21-
AllowShortEnumsOnASingleLine: true
84+
AllowBreakBeforeNoexceptSpecifier: Never
2285
AllowShortBlocksOnASingleLine: Never
86+
AllowShortCaseExpressionOnASingleLine: true
2387
AllowShortCaseLabelsOnASingleLine: false
88+
AllowShortCompoundRequirementOnASingleLine: true
89+
AllowShortEnumsOnASingleLine: true
2490
AllowShortFunctionsOnASingleLine: None
25-
AllowShortLambdasOnASingleLine: Empty
2691
AllowShortIfStatementsOnASingleLine: Never
92+
AllowShortLambdasOnASingleLine: Empty
2793
AllowShortLoopsOnASingleLine: false
94+
AllowShortNamespacesOnASingleLine: false
2895
AlwaysBreakAfterDefinitionReturnType: None
29-
AlwaysBreakAfterReturnType: None
3096
AlwaysBreakBeforeMultilineStrings: false
31-
AlwaysBreakTemplateDeclarations: Yes
3297
AttributeMacros:
98+
- __capability
3399
BinPackArguments: false
34-
BinPackParameters: false
100+
BinPackParameters: OnePerLine
101+
BitFieldColonSpacing: Both
35102
BraceWrapping:
36103
AfterCaseLabel: true
37104
AfterClass: true
38105
AfterControlStatement: Always
39106
AfterEnum: true
107+
AfterExternBlock: true
40108
AfterFunction: true
41109
AfterNamespace: true
42110
AfterObjCDeclaration: false
43111
AfterStruct: true
44112
AfterUnion: true
45-
AfterExternBlock: true
46113
BeforeCatch: true
47114
BeforeElse: true
48115
BeforeLambdaBody: true
@@ -51,107 +118,138 @@ BraceWrapping:
51118
SplitEmptyFunction: false
52119
SplitEmptyRecord: false
53120
SplitEmptyNamespace: false
121+
BreakAdjacentStringLiterals: true
122+
BreakAfterAttributes: Leave
123+
BreakAfterJavaFieldAnnotations: false
124+
BreakAfterReturnType: None
125+
BreakArrays: true
54126
BreakBeforeBinaryOperators: NonAssignment
55-
BreakBeforeConceptDeclarations: true
127+
BreakBeforeConceptDeclarations: Always
56128
BreakBeforeBraces: Custom
57-
BreakBeforeInheritanceComma: false
58-
BreakInheritanceList: AfterColon
129+
BreakBeforeInlineASMColon: OnlyMultiline
59130
BreakBeforeTernaryOperators: true
60-
BreakConstructorInitializersBeforeComma: false
131+
BreakBinaryOperations: Never
61132
BreakConstructorInitializers: AfterColon
62-
BreakAfterJavaFieldAnnotations: false
133+
BreakFunctionDefinitionParameters: false
134+
BreakInheritanceList: AfterColon
63135
BreakStringLiterals: true
136+
BreakTemplateDeclarations: Yes
64137
ColumnLimit: 120
65138
CommentPragmas: '^ IWYU pragma:'
66-
QualifierAlignment: Custom
67-
QualifierOrder: ['static', 'inline', 'constexpr', 'volatile', 'type', 'const']
68139
CompactNamespaces: false
69140
ConstructorInitializerIndentWidth: 4
70141
ContinuationIndentWidth: 4
71142
Cpp11BracedListStyle: true
72-
DeriveLineEnding: true
73143
DerivePointerAlignment: false
74144
DisableFormat: false
75145
EmptyLineAfterAccessModifier: Never
76146
EmptyLineBeforeAccessModifier: Always
77147
ExperimentalAutoDetectBinPacking: false
78-
PackConstructorInitializers: CurrentLine
79-
BasedOnStyle: ''
80-
ConstructorInitializerAllOnOneLineOrOnePerLine: false
81-
AllowAllConstructorInitializersOnNextLine: true
82148
FixNamespaceComments: true
83149
ForEachMacros:
150+
- foreach
151+
- Q_FOREACH
152+
- BOOST_FOREACH
84153
IfMacros:
154+
- KJ_IF_MAYBE
85155
IncludeBlocks: Regroup
86156
IncludeCategories:
87-
- Regex: '(<gtest/.*|<benchmark/.*)'
157+
- Regex: '<[[:alnum:]._]+>'
88158
Priority: 1
89-
- Regex: '(<[[:alnum:]._]+>|<seqan3/std/.*>)'
90-
Priority: 2
91-
- Regex: '<sdsl/'
92-
Priority: 3
93-
- Regex: '<seqan3/'
94-
Priority: 4
95-
- Regex: '<cereal/'
96-
Priority: 5
97-
- Regex: '<lemon/'
98-
Priority: 6
159+
SortPriority: 0
160+
CaseSensitive: false
99161
- Regex: '.*'
100-
Priority: 7
162+
Priority: 2
163+
SortPriority: 0
164+
CaseSensitive: false
101165
IncludeIsMainRegex: '(Test)?$'
102166
IncludeIsMainSourceRegex: ''
103167
IndentAccessModifiers: false
104-
IndentCaseLabels: false
105168
IndentCaseBlocks: false
169+
IndentCaseLabels: false
170+
IndentExportBlock: true
171+
IndentExternBlock: AfterExternBlock
106172
IndentGotoLabels: true
107173
IndentPPDirectives: AfterHash
108-
IndentExternBlock: AfterExternBlock
109-
IndentRequiresClause : true
174+
IndentRequiresClause: true
110175
IndentWidth: 4
111176
IndentWrappedFunctionNames: false
177+
InsertBraces: false
178+
InsertNewlineAtEOF: false
112179
InsertTrailingCommas: None
180+
IntegerLiteralSeparator:
181+
Binary: 0
182+
BinaryMinDigits: 0
183+
Decimal: 0
184+
DecimalMinDigits: 0
185+
Hex: 0
186+
HexMinDigits: 0
113187
JavaScriptQuotes: Leave
114188
JavaScriptWrapImports: true
115-
KeepEmptyLinesAtTheStartOfBlocks: true
189+
KeepEmptyLines:
190+
AtEndOfFile: false
191+
AtStartOfBlock: true
192+
AtStartOfFile: true
193+
KeepFormFeed: false
116194
LambdaBodyIndentation: Signature
195+
LineEnding: DeriveLF
117196
MacroBlockBegin: ''
118197
MacroBlockEnd: ''
198+
MainIncludeChar: Quote
119199
MaxEmptyLinesToKeep: 1
120200
NamespaceIndentation: None
121201
ObjCBinPackProtocolList: Never
122202
ObjCBlockIndentWidth: 2
123203
ObjCBreakBeforeNestedBlockParam: true
124204
ObjCSpaceAfterProperty: false
125205
ObjCSpaceBeforeProtocolList: true
206+
PackConstructorInitializers: CurrentLine
126207
PenaltyBreakAssignment: 2
127208
PenaltyBreakBeforeFirstCallParameter: 19
209+
PenaltyBreakBeforeMemberAccess: 150
128210
PenaltyBreakComment: 300
129211
PenaltyBreakFirstLessLess: 120
130212
PenaltyBreakOpenParenthesis: 0
213+
PenaltyBreakScopeResolution: 500
131214
PenaltyBreakString: 1000
132215
PenaltyBreakTemplateDeclaration: 10
133216
PenaltyExcessCharacter: 1000000
134-
PenaltyReturnTypeOnItsOwnLine: 60
135217
PenaltyIndentedWhitespace: 0
218+
PenaltyReturnTypeOnItsOwnLine: 60
136219
PointerAlignment: Middle
137220
PPIndentWidth: -1
221+
QualifierAlignment: Custom
222+
QualifierOrder:
223+
- static
224+
- inline
225+
- constexpr
226+
- volatile
227+
- type
228+
- const
138229
ReferenceAlignment: Pointer
139-
ReflowComments: false
230+
ReflowComments: Never
140231
RemoveBracesLLVM: false
141-
RequiresClausePosition : OwnLine
232+
RemoveEmptyLinesInUnwrappedLines: false
233+
RemoveParentheses: Leave
234+
RemoveSemicolon: false
235+
RequiresClausePosition: OwnLine
236+
RequiresExpressionIndentation: OuterScope
142237
SeparateDefinitionBlocks: Leave
143238
ShortNamespaceLines: 1
144-
SortIncludes: true
239+
SkipMacroDefinitionBody: false
240+
SortIncludes: CaseSensitive
145241
SortJavaStaticImport: Before
146-
SortUsingDeclarations: true
242+
SortUsingDeclarations: LexicographicNumeric
147243
SpaceAfterCStyleCast: false
148244
SpaceAfterLogicalNot: false
149245
SpaceAfterTemplateKeyword: true
246+
SpaceAroundPointerQualifiers: Default
150247
SpaceBeforeAssignmentOperators: true
151248
SpaceBeforeCaseColon: false
152249
SpaceBeforeCpp11BracedList: false
153250
SpaceBeforeCtorInitializerColon: true
154251
SpaceBeforeInheritanceColon: true
252+
SpaceBeforeJsonColon: false
155253
SpaceBeforeParens: Custom
156254
SpaceBeforeParensOptions:
157255
AfterControlStatements: true
@@ -160,31 +258,41 @@ SpaceBeforeParensOptions:
160258
AfterFunctionDeclarationName: false
161259
AfterIfMacros: true
162260
AfterOverloadedOperator: false
163-
AfterRequiresInClause : true
164-
AfterRequiresInExpression : true
261+
AfterPlacementOperator: true
262+
AfterRequiresInClause: true
263+
AfterRequiresInExpression: true
165264
BeforeNonEmptyParentheses: false
166-
SpaceAroundPointerQualifiers: Default
167265
SpaceBeforeRangeBasedForLoopColon: true
266+
SpaceBeforeSquareBrackets: false
168267
SpaceInEmptyBlock: false
169-
SpaceInEmptyParentheses: false
170268
SpacesBeforeTrailingComments: 1
171269
SpacesInAngles: Never
172-
SpacesInConditionalStatement: false
173270
SpacesInContainerLiterals: false
174-
SpacesInCStyleCastParentheses: false
175271
SpacesInLineCommentPrefix:
176272
Minimum: 1
177273
Maximum: -1
178-
SpacesInParentheses: false
274+
SpacesInParens: Never
275+
SpacesInParensOptions:
276+
ExceptDoubleParentheses: false
277+
InCStyleCasts: false
278+
InConditionalStatements: false
279+
InEmptyParentheses: false
280+
Other: false
179281
SpacesInSquareBrackets: false
180-
SpaceBeforeSquareBrackets: false
181-
BitFieldColonSpacing: Both
182282
Standard: c++20
183283
StatementAttributeLikeMacros:
284+
- Q_EMIT
184285
StatementMacros:
286+
- Q_UNUSED
287+
- QT_REQUIRE_VERSION
288+
TableGenBreakInsideDAGArg: DontBreak
185289
TabWidth: 4
186-
UseCRLF: false
187290
UseTab: Never
291+
VerilogBreakBetweenInstancePorts: true
188292
WhitespaceSensitiveMacros:
189-
- SEQAN3_DEPRECATED_HEADER
293+
- CF_SWIFT_NAME
294+
- NS_SWIFT_NAME
295+
- PP_STRINGIZE
296+
- STRINGIZE
297+
WrapNamespaceBodyWithEmptyLines: Leave
190298
...

0 commit comments

Comments
 (0)