Skip to content

Commit c5bce9c

Browse files
authored
Initial commit
0 parents  commit c5bce9c

38 files changed

+2104
-0
lines changed

.clang-format

Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,243 @@
1+
# SPDX-FileCopyrightText: 2006-2025, Knut Reinert & Freie Universität Berlin
2+
# SPDX-FileCopyrightText: 2016-2025, Knut Reinert & MPI für molekulare Genetik
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
# Format all files: find . -iname "*.[ch]pp" -not -path "./build/*" | xargs clang-format-19 --style=file -i
6+
# Staged files: git diff --name-only HEAD --diff-filter=ACMRT | grep -E "(\.cpp|\.hpp)$" | xargs clang-format-19 --style=file -i
7+
---
8+
Language: Cpp
9+
AccessModifierOffset: -4
10+
AlignAfterOpenBracket: Align
11+
AlignArrayOfStructures: None
12+
AlignConsecutiveAssignments:
13+
Enabled: false
14+
AcrossEmptyLines: false
15+
AcrossComments: false
16+
AlignCompound: false
17+
AlignFunctionPointers: false
18+
PadOperators: true
19+
AlignConsecutiveBitFields:
20+
Enabled: false
21+
AcrossEmptyLines: false
22+
AcrossComments: false
23+
AlignCompound: false
24+
AlignFunctionPointers: false
25+
PadOperators: true
26+
AlignConsecutiveDeclarations:
27+
Enabled: false
28+
AcrossEmptyLines: false
29+
AcrossComments: false
30+
AlignCompound: false
31+
AlignFunctionPointers: false
32+
PadOperators: true
33+
AlignConsecutiveMacros:
34+
Enabled: false
35+
AcrossEmptyLines: false
36+
AcrossComments: false
37+
AlignCompound: false
38+
AlignFunctionPointers: false
39+
PadOperators: true
40+
AlignConsecutiveShortCaseStatements:
41+
Enabled: false
42+
AcrossEmptyLines: false
43+
AcrossComments: false
44+
AlignCaseColons: false
45+
AlignEscapedNewlines: Right
46+
AlignOperands: AlignAfterOperator
47+
AlignTrailingComments:
48+
Kind: Always
49+
OverEmptyLines: 0
50+
AllowAllArgumentsOnNextLine: false
51+
AllowAllParametersOfDeclarationOnNextLine: false
52+
AllowBreakBeforeNoexceptSpecifier: Never
53+
AllowShortBlocksOnASingleLine: Empty
54+
AllowShortCaseLabelsOnASingleLine: false
55+
AllowShortCompoundRequirementOnASingleLine: true
56+
AllowShortEnumsOnASingleLine: true
57+
AllowShortFunctionsOnASingleLine: None
58+
AllowShortIfStatementsOnASingleLine: Never
59+
AllowShortLambdasOnASingleLine: Empty
60+
AllowShortLoopsOnASingleLine: false
61+
AlwaysBreakAfterDefinitionReturnType: None
62+
AlwaysBreakAfterReturnType: None
63+
AlwaysBreakBeforeMultilineStrings: false
64+
AlwaysBreakTemplateDeclarations: Yes
65+
AttributeMacros:
66+
- __capability
67+
BinPackArguments: false
68+
BinPackParameters: false
69+
BitFieldColonSpacing: Both
70+
BraceWrapping:
71+
AfterCaseLabel: true
72+
AfterClass: true
73+
AfterControlStatement: Always
74+
AfterEnum: true
75+
AfterExternBlock: true
76+
AfterFunction: true
77+
AfterNamespace: true
78+
AfterObjCDeclaration: false
79+
AfterStruct: true
80+
AfterUnion: true
81+
BeforeCatch: true
82+
BeforeElse: true
83+
BeforeLambdaBody: true
84+
BeforeWhile: true
85+
IndentBraces: false
86+
SplitEmptyFunction: false
87+
SplitEmptyRecord: false
88+
SplitEmptyNamespace: false
89+
BreakAdjacentStringLiterals: true
90+
BreakAfterAttributes: Leave
91+
BreakAfterJavaFieldAnnotations: false
92+
BreakArrays: true
93+
BreakBeforeBinaryOperators: NonAssignment
94+
BreakBeforeConceptDeclarations: Always
95+
BreakBeforeBraces: Custom
96+
BreakBeforeInlineASMColon: OnlyMultiline
97+
BreakBeforeTernaryOperators: true
98+
BreakConstructorInitializers: AfterColon
99+
BreakInheritanceList: AfterColon
100+
BreakStringLiterals: true
101+
ColumnLimit: 120
102+
CommentPragmas: '^ IWYU pragma:'
103+
CompactNamespaces: false
104+
ConstructorInitializerIndentWidth: 4
105+
ContinuationIndentWidth: 4
106+
Cpp11BracedListStyle: true
107+
DerivePointerAlignment: false
108+
DisableFormat: false
109+
EmptyLineAfterAccessModifier: Never
110+
EmptyLineBeforeAccessModifier: Always
111+
ExperimentalAutoDetectBinPacking: false
112+
FixNamespaceComments: true
113+
ForEachMacros:
114+
IfMacros:
115+
IncludeBlocks: Regroup
116+
IncludeCategories:
117+
- Regex: '(<gtest/.*|<benchmark/.*)'
118+
Priority: 1
119+
- Regex: '(<[[:alnum:]._]+>)'
120+
Priority: 2
121+
- Regex: '<sharg/'
122+
Priority: 3
123+
- Regex: '<seqan3/'
124+
Priority: 4
125+
- Regex: '.*'
126+
Priority: 5
127+
IncludeIsMainRegex: '(Test)?$'
128+
IncludeIsMainSourceRegex: ''
129+
IndentAccessModifiers: false
130+
IndentCaseBlocks: false
131+
IndentCaseLabels: false
132+
IndentExternBlock: AfterExternBlock
133+
IndentGotoLabels: true
134+
IndentPPDirectives: AfterHash
135+
IndentRequiresClause: true
136+
IndentWidth: 4
137+
IndentWrappedFunctionNames: false
138+
InsertBraces: false
139+
InsertNewlineAtEOF: false
140+
InsertTrailingCommas: None
141+
IntegerLiteralSeparator:
142+
Binary: 0
143+
BinaryMinDigits: 0
144+
Decimal: 0
145+
DecimalMinDigits: 0
146+
Hex: 0
147+
HexMinDigits: 0
148+
JavaScriptQuotes: Leave
149+
JavaScriptWrapImports: true
150+
KeepEmptyLinesAtTheStartOfBlocks: true
151+
KeepEmptyLinesAtEOF: false
152+
LambdaBodyIndentation: Signature
153+
LineEnding: DeriveLF
154+
MacroBlockBegin: ''
155+
MacroBlockEnd: ''
156+
MaxEmptyLinesToKeep: 1
157+
NamespaceIndentation: None
158+
ObjCBinPackProtocolList: Never
159+
ObjCBlockIndentWidth: 2
160+
ObjCBreakBeforeNestedBlockParam: true
161+
ObjCSpaceAfterProperty: false
162+
ObjCSpaceBeforeProtocolList: true
163+
PackConstructorInitializers: CurrentLine
164+
PenaltyBreakAssignment: 2
165+
PenaltyBreakBeforeFirstCallParameter: 19
166+
PenaltyBreakComment: 300
167+
PenaltyBreakFirstLessLess: 120
168+
PenaltyBreakOpenParenthesis: 0
169+
PenaltyBreakScopeResolution: 500
170+
PenaltyBreakString: 1000
171+
PenaltyBreakTemplateDeclaration: 10
172+
PenaltyExcessCharacter: 1000000
173+
PenaltyIndentedWhitespace: 0
174+
PenaltyReturnTypeOnItsOwnLine: 60
175+
PointerAlignment: Middle
176+
PPIndentWidth: -1
177+
QualifierAlignment: Custom
178+
QualifierOrder:
179+
- static
180+
- inline
181+
- constexpr
182+
- volatile
183+
- type
184+
- const
185+
ReferenceAlignment: Pointer
186+
ReflowComments: false
187+
RemoveBracesLLVM: false
188+
RemoveParentheses: Leave
189+
RemoveSemicolon: false
190+
RequiresClausePosition: OwnLine
191+
RequiresExpressionIndentation: OuterScope
192+
SeparateDefinitionBlocks: Leave
193+
ShortNamespaceLines: 1
194+
SkipMacroDefinitionBody: false
195+
SortIncludes: CaseSensitive
196+
SortJavaStaticImport: Before
197+
SortUsingDeclarations: LexicographicNumeric
198+
SpaceAfterCStyleCast: false
199+
SpaceAfterLogicalNot: false
200+
SpaceAfterTemplateKeyword: true
201+
SpaceAroundPointerQualifiers: Default
202+
SpaceBeforeAssignmentOperators: true
203+
SpaceBeforeCaseColon: false
204+
SpaceBeforeCpp11BracedList: false
205+
SpaceBeforeCtorInitializerColon: true
206+
SpaceBeforeInheritanceColon: true
207+
SpaceBeforeJsonColon: false
208+
SpaceBeforeParens: Custom
209+
SpaceBeforeParensOptions:
210+
AfterControlStatements: true
211+
AfterForeachMacros: true
212+
AfterFunctionDefinitionName: false
213+
AfterFunctionDeclarationName: false
214+
AfterIfMacros: true
215+
AfterOverloadedOperator: false
216+
AfterPlacementOperator: true
217+
AfterRequiresInClause: true
218+
AfterRequiresInExpression: true
219+
BeforeNonEmptyParentheses: false
220+
SpaceBeforeRangeBasedForLoopColon: true
221+
SpaceBeforeSquareBrackets: false
222+
SpaceInEmptyBlock: false
223+
SpacesBeforeTrailingComments: 1
224+
SpacesInAngles: Never
225+
SpacesInContainerLiterals: false
226+
SpacesInLineCommentPrefix:
227+
Minimum: 1
228+
Maximum: -1
229+
SpacesInParens: Never
230+
SpacesInParensOptions:
231+
InCStyleCasts: false
232+
InConditionalStatements: false
233+
InEmptyParentheses: false
234+
Other: false
235+
SpacesInSquareBrackets: false
236+
Standard: c++20
237+
StatementAttributeLikeMacros:
238+
StatementMacros:
239+
TabWidth: 4
240+
UseTab: Never
241+
VerilogBreakBetweenInstancePorts: true
242+
WhitespaceSensitiveMacros:
243+
...

0 commit comments

Comments
 (0)