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---
811Language : Cpp
912AccessModifierOffset : -4
1013AlignAfterOpenBracket : Align
1114AlignArrayOfStructures : 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
1677AlignEscapedNewlines : Right
1778AlignOperands : AlignAfterOperator
18- AlignTrailingComments : true
79+ AlignTrailingComments :
80+ Kind : Always
81+ OverEmptyLines : 0
1982AllowAllArgumentsOnNextLine : false
2083AllowAllParametersOfDeclarationOnNextLine : false
21- AllowShortEnumsOnASingleLine : true
84+ AllowBreakBeforeNoexceptSpecifier : Never
2285AllowShortBlocksOnASingleLine : Never
86+ AllowShortCaseExpressionOnASingleLine : true
2387AllowShortCaseLabelsOnASingleLine : false
88+ AllowShortCompoundRequirementOnASingleLine : true
89+ AllowShortEnumsOnASingleLine : true
2490AllowShortFunctionsOnASingleLine : None
25- AllowShortLambdasOnASingleLine : Empty
2691AllowShortIfStatementsOnASingleLine : Never
92+ AllowShortLambdasOnASingleLine : Empty
2793AllowShortLoopsOnASingleLine : false
94+ AllowShortNamespacesOnASingleLine : false
2895AlwaysBreakAfterDefinitionReturnType : None
29- AlwaysBreakAfterReturnType : None
3096AlwaysBreakBeforeMultilineStrings : false
31- AlwaysBreakTemplateDeclarations : Yes
3297AttributeMacros :
98+ - __capability
3399BinPackArguments : false
34- BinPackParameters : false
100+ BinPackParameters : OnePerLine
101+ BitFieldColonSpacing : Both
35102BraceWrapping :
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
54126BreakBeforeBinaryOperators : NonAssignment
55- BreakBeforeConceptDeclarations : true
127+ BreakBeforeConceptDeclarations : Always
56128BreakBeforeBraces : Custom
57- BreakBeforeInheritanceComma : false
58- BreakInheritanceList : AfterColon
129+ BreakBeforeInlineASMColon : OnlyMultiline
59130BreakBeforeTernaryOperators : true
60- BreakConstructorInitializersBeforeComma : false
131+ BreakBinaryOperations : Never
61132BreakConstructorInitializers : AfterColon
62- BreakAfterJavaFieldAnnotations : false
133+ BreakFunctionDefinitionParameters : false
134+ BreakInheritanceList : AfterColon
63135BreakStringLiterals : true
136+ BreakTemplateDeclarations : Yes
64137ColumnLimit : 120
65138CommentPragmas : ' ^ IWYU pragma:'
66- QualifierAlignment : Custom
67- QualifierOrder : ['static', 'inline', 'constexpr', 'volatile', 'type', 'const']
68139CompactNamespaces : false
69140ConstructorInitializerIndentWidth : 4
70141ContinuationIndentWidth : 4
71142Cpp11BracedListStyle : true
72- DeriveLineEnding : true
73143DerivePointerAlignment : false
74144DisableFormat : false
75145EmptyLineAfterAccessModifier : Never
76146EmptyLineBeforeAccessModifier : Always
77147ExperimentalAutoDetectBinPacking : false
78- PackConstructorInitializers : CurrentLine
79- BasedOnStyle : ' '
80- ConstructorInitializerAllOnOneLineOrOnePerLine : false
81- AllowAllConstructorInitializersOnNextLine : true
82148FixNamespaceComments : true
83149ForEachMacros :
150+ - foreach
151+ - Q_FOREACH
152+ - BOOST_FOREACH
84153IfMacros :
154+ - KJ_IF_MAYBE
85155IncludeBlocks : Regroup
86156IncludeCategories :
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
101165IncludeIsMainRegex : ' (Test)?$'
102166IncludeIsMainSourceRegex : ' '
103167IndentAccessModifiers : false
104- IndentCaseLabels : false
105168IndentCaseBlocks : false
169+ IndentCaseLabels : false
170+ IndentExportBlock : true
171+ IndentExternBlock : AfterExternBlock
106172IndentGotoLabels : true
107173IndentPPDirectives : AfterHash
108- IndentExternBlock : AfterExternBlock
109- IndentRequiresClause : true
174+ IndentRequiresClause : true
110175IndentWidth : 4
111176IndentWrappedFunctionNames : false
177+ InsertBraces : false
178+ InsertNewlineAtEOF : false
112179InsertTrailingCommas : None
180+ IntegerLiteralSeparator :
181+ Binary : 0
182+ BinaryMinDigits : 0
183+ Decimal : 0
184+ DecimalMinDigits : 0
185+ Hex : 0
186+ HexMinDigits : 0
113187JavaScriptQuotes : Leave
114188JavaScriptWrapImports : true
115- KeepEmptyLinesAtTheStartOfBlocks : true
189+ KeepEmptyLines :
190+ AtEndOfFile : false
191+ AtStartOfBlock : true
192+ AtStartOfFile : true
193+ KeepFormFeed : false
116194LambdaBodyIndentation : Signature
195+ LineEnding : DeriveLF
117196MacroBlockBegin : ' '
118197MacroBlockEnd : ' '
198+ MainIncludeChar : Quote
119199MaxEmptyLinesToKeep : 1
120200NamespaceIndentation : None
121201ObjCBinPackProtocolList : Never
122202ObjCBlockIndentWidth : 2
123203ObjCBreakBeforeNestedBlockParam : true
124204ObjCSpaceAfterProperty : false
125205ObjCSpaceBeforeProtocolList : true
206+ PackConstructorInitializers : CurrentLine
126207PenaltyBreakAssignment : 2
127208PenaltyBreakBeforeFirstCallParameter : 19
209+ PenaltyBreakBeforeMemberAccess : 150
128210PenaltyBreakComment : 300
129211PenaltyBreakFirstLessLess : 120
130212PenaltyBreakOpenParenthesis : 0
213+ PenaltyBreakScopeResolution : 500
131214PenaltyBreakString : 1000
132215PenaltyBreakTemplateDeclaration : 10
133216PenaltyExcessCharacter : 1000000
134- PenaltyReturnTypeOnItsOwnLine : 60
135217PenaltyIndentedWhitespace : 0
218+ PenaltyReturnTypeOnItsOwnLine : 60
136219PointerAlignment : Middle
137220PPIndentWidth : -1
221+ QualifierAlignment : Custom
222+ QualifierOrder :
223+ - static
224+ - inline
225+ - constexpr
226+ - volatile
227+ - type
228+ - const
138229ReferenceAlignment : Pointer
139- ReflowComments : false
230+ ReflowComments : Never
140231RemoveBracesLLVM : false
141- RequiresClausePosition : OwnLine
232+ RemoveEmptyLinesInUnwrappedLines : false
233+ RemoveParentheses : Leave
234+ RemoveSemicolon : false
235+ RequiresClausePosition : OwnLine
236+ RequiresExpressionIndentation : OuterScope
142237SeparateDefinitionBlocks : Leave
143238ShortNamespaceLines : 1
144- SortIncludes : true
239+ SkipMacroDefinitionBody : false
240+ SortIncludes : CaseSensitive
145241SortJavaStaticImport : Before
146- SortUsingDeclarations : true
242+ SortUsingDeclarations : LexicographicNumeric
147243SpaceAfterCStyleCast : false
148244SpaceAfterLogicalNot : false
149245SpaceAfterTemplateKeyword : true
246+ SpaceAroundPointerQualifiers : Default
150247SpaceBeforeAssignmentOperators : true
151248SpaceBeforeCaseColon : false
152249SpaceBeforeCpp11BracedList : false
153250SpaceBeforeCtorInitializerColon : true
154251SpaceBeforeInheritanceColon : true
252+ SpaceBeforeJsonColon : false
155253SpaceBeforeParens : Custom
156254SpaceBeforeParensOptions :
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
167265SpaceBeforeRangeBasedForLoopColon : true
266+ SpaceBeforeSquareBrackets : false
168267SpaceInEmptyBlock : false
169- SpaceInEmptyParentheses : false
170268SpacesBeforeTrailingComments : 1
171269SpacesInAngles : Never
172- SpacesInConditionalStatement : false
173270SpacesInContainerLiterals : false
174- SpacesInCStyleCastParentheses : false
175271SpacesInLineCommentPrefix :
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
179281SpacesInSquareBrackets : false
180- SpaceBeforeSquareBrackets : false
181- BitFieldColonSpacing : Both
182282Standard : c++20
183283StatementAttributeLikeMacros :
284+ - Q_EMIT
184285StatementMacros :
286+ - Q_UNUSED
287+ - QT_REQUIRE_VERSION
288+ TableGenBreakInsideDAGArg : DontBreak
185289TabWidth : 4
186- UseCRLF : false
187290UseTab : Never
291+ VerilogBreakBetweenInstancePorts : true
188292WhitespaceSensitiveMacros :
189- - SEQAN3_DEPRECATED_HEADER
293+ - CF_SWIFT_NAME
294+ - NS_SWIFT_NAME
295+ - PP_STRINGIZE
296+ - STRINGIZE
297+ WrapNamespaceBodyWithEmptyLines : Leave
190298...
0 commit comments