22# SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
33# SPDX-License-Identifier: CC0-1.0
44
5- # Format all files in include folder, including std module, excluding contrib module
6- # find . \( -path "./include/seqan3/std/*" -or -iname "*.hpp" \) -and -not -path "./submodules/*" -and -not -path "./build/*" -and -not -path "./include/seqan3/contrib/*" -and -not -path "./test/*" | xargs clang-format-15 --style=file -i
5+ # Format all files in include/test folder, including std module, excluding contrib module
6+ # find . \( -path "./include/seqan3/std/*" -iname "*.cpp" -or -iname "*.hpp" \) -and -not -path "./submodules/*" -and -not -path "./build/*" -and -not -path "./include/seqan3/contrib/*" | xargs clang-format-18 --style=file -i
7+ # Staged files: git diff --name-only HEAD --diff-filter=ACMRT | grep -E "(\.cpp|\.hpp)$" | xargs clang-format-18 --style=file -i
8+
79---
810Language : Cpp
911AccessModifierOffset : -4
1012AlignAfterOpenBracket : Align
1113AlignArrayOfStructures : None
12- AlignConsecutiveMacros : None
13- AlignConsecutiveAssignments : None
14- AlignConsecutiveBitFields : None
15- AlignConsecutiveDeclarations : None
14+ AlignConsecutiveAssignments :
15+ Enabled : false
16+ AcrossEmptyLines : false
17+ AcrossComments : false
18+ AlignCompound : false
19+ AlignFunctionPointers : false
20+ PadOperators : true
21+ AlignConsecutiveBitFields :
22+ Enabled : false
23+ AcrossEmptyLines : false
24+ AcrossComments : false
25+ AlignCompound : false
26+ AlignFunctionPointers : false
27+ PadOperators : true
28+ AlignConsecutiveDeclarations :
29+ Enabled : false
30+ AcrossEmptyLines : false
31+ AcrossComments : false
32+ AlignCompound : false
33+ AlignFunctionPointers : false
34+ PadOperators : true
35+ AlignConsecutiveMacros :
36+ Enabled : false
37+ AcrossEmptyLines : false
38+ AcrossComments : false
39+ AlignCompound : false
40+ AlignFunctionPointers : false
41+ PadOperators : true
42+ AlignConsecutiveShortCaseStatements :
43+ Enabled : false
44+ AcrossEmptyLines : false
45+ AcrossComments : false
46+ AlignCaseColons : false
1647AlignEscapedNewlines : Right
1748AlignOperands : AlignAfterOperator
18- AlignTrailingComments : true
49+ AlignTrailingComments :
50+ Kind : Always
51+ OverEmptyLines : 0
1952AllowAllArgumentsOnNextLine : false
2053AllowAllParametersOfDeclarationOnNextLine : false
21- AllowShortEnumsOnASingleLine : true
22- AllowShortBlocksOnASingleLine : Never
54+ AllowBreakBeforeNoexceptSpecifier : OnlyWithParen
55+ AllowShortBlocksOnASingleLine : Empty
2356AllowShortCaseLabelsOnASingleLine : false
57+ AllowShortCompoundRequirementOnASingleLine : true
58+ AllowShortEnumsOnASingleLine : true
2459AllowShortFunctionsOnASingleLine : None
25- AllowShortLambdasOnASingleLine : Empty
2660AllowShortIfStatementsOnASingleLine : Never
61+ AllowShortLambdasOnASingleLine : Empty
2762AllowShortLoopsOnASingleLine : false
2863AlwaysBreakAfterDefinitionReturnType : None
2964AlwaysBreakAfterReturnType : None
3065AlwaysBreakBeforeMultilineStrings : false
3166AlwaysBreakTemplateDeclarations : Yes
3267AttributeMacros :
68+ - __capability
3369BinPackArguments : false
3470BinPackParameters : false
71+ BitFieldColonSpacing : Both
3572BraceWrapping :
3673 AfterCaseLabel : true
3774 AfterClass : true
3875 AfterControlStatement : Always
3976 AfterEnum : true
77+ AfterExternBlock : true
4078 AfterFunction : true
4179 AfterNamespace : true
4280 AfterObjCDeclaration : false
4381 AfterStruct : true
4482 AfterUnion : true
45- AfterExternBlock : true
4683 BeforeCatch : true
4784 BeforeElse : true
4885 BeforeLambdaBody : true
@@ -51,69 +88,93 @@ BraceWrapping:
5188 SplitEmptyFunction : false
5289 SplitEmptyRecord : false
5390 SplitEmptyNamespace : false
91+ BreakAdjacentStringLiterals : true
92+ BreakAfterAttributes : Leave
93+ BreakAfterJavaFieldAnnotations : false
94+ BreakArrays : true
5495BreakBeforeBinaryOperators : NonAssignment
55- BreakBeforeConceptDeclarations : true
96+ BreakBeforeConceptDeclarations : Always
5697BreakBeforeBraces : Custom
57- BreakBeforeInheritanceComma : false
58- BreakInheritanceList : AfterColon
98+ BreakBeforeInlineASMColon : OnlyMultiline
5999BreakBeforeTernaryOperators : true
60- BreakConstructorInitializersBeforeComma : false
61100BreakConstructorInitializers : AfterColon
62- BreakAfterJavaFieldAnnotations : false
101+ BreakInheritanceList : AfterColon
63102BreakStringLiterals : true
64103ColumnLimit : 120
65104CommentPragmas : ' ^ IWYU pragma:'
66- QualifierAlignment : Custom
67- QualifierOrder : ['static', 'inline', 'constexpr', 'volatile', 'type', 'const']
68105CompactNamespaces : false
69106ConstructorInitializerIndentWidth : 4
70107ContinuationIndentWidth : 4
71108Cpp11BracedListStyle : true
72- DeriveLineEnding : true
73109DerivePointerAlignment : false
74110DisableFormat : false
75111EmptyLineAfterAccessModifier : Never
76112EmptyLineBeforeAccessModifier : Always
77113ExperimentalAutoDetectBinPacking : false
78- PackConstructorInitializers : CurrentLine
79- BasedOnStyle : ' '
80- ConstructorInitializerAllOnOneLineOrOnePerLine : false
81- AllowAllConstructorInitializersOnNextLine : true
82114FixNamespaceComments : true
83115ForEachMacros :
116+ - foreach
117+ - Q_FOREACH
118+ - BOOST_FOREACH
84119IfMacros :
120+ - KJ_IF_MAYBE
85121IncludeBlocks : Regroup
86122IncludeCategories :
87123 - Regex : ' (<gtest/.*|<benchmark/.*)'
88124 Priority : 1
125+ SortPriority : 0
126+ CaseSensitive : false
89127 - Regex : ' (<[[:alnum:]._]+>|<seqan3/std/.*>)'
90128 Priority : 2
129+ SortPriority : 0
130+ CaseSensitive : false
91131 - Regex : ' <sdsl/'
92132 Priority : 3
133+ SortPriority : 0
134+ CaseSensitive : false
93135 - Regex : ' <seqan3/'
94136 Priority : 4
137+ SortPriority : 0
138+ CaseSensitive : false
95139 - Regex : ' <cereal/'
96140 Priority : 5
141+ SortPriority : 0
142+ CaseSensitive : false
97143 - Regex : ' <lemon/'
98144 Priority : 6
145+ SortPriority : 0
146+ CaseSensitive : false
99147 - Regex : ' .*'
100148 Priority : 7
149+ SortPriority : 0
150+ CaseSensitive : false
101151IncludeIsMainRegex : ' (Test)?$'
102152IncludeIsMainSourceRegex : ' '
103153IndentAccessModifiers : false
104- IndentCaseLabels : false
105154IndentCaseBlocks : false
155+ IndentCaseLabels : false
156+ IndentExternBlock : AfterExternBlock
106157IndentGotoLabels : true
107158IndentPPDirectives : AfterHash
108- IndentExternBlock : AfterExternBlock
109- IndentRequiresClause : true
159+ IndentRequiresClause : true
110160IndentWidth : 4
111161IndentWrappedFunctionNames : false
162+ InsertBraces : false
163+ InsertNewlineAtEOF : false
112164InsertTrailingCommas : None
165+ IntegerLiteralSeparator :
166+ Binary : 4
167+ BinaryMinDigits : 0
168+ Decimal : 3
169+ DecimalMinDigits : 7
170+ Hex : 2
171+ HexMinDigits : 4
113172JavaScriptQuotes : Leave
114173JavaScriptWrapImports : true
115174KeepEmptyLinesAtTheStartOfBlocks : true
175+ KeepEmptyLinesAtEOF : false
116176LambdaBodyIndentation : Signature
177+ LineEnding : DeriveLF
117178MacroBlockBegin : ' '
118179MacroBlockEnd : ' '
119180MaxEmptyLinesToKeep : 1
@@ -123,35 +184,51 @@ ObjCBlockIndentWidth: 2
123184ObjCBreakBeforeNestedBlockParam : true
124185ObjCSpaceAfterProperty : false
125186ObjCSpaceBeforeProtocolList : true
187+ PackConstructorInitializers : CurrentLine
126188PenaltyBreakAssignment : 2
127189PenaltyBreakBeforeFirstCallParameter : 19
128190PenaltyBreakComment : 300
129191PenaltyBreakFirstLessLess : 120
130192PenaltyBreakOpenParenthesis : 0
193+ PenaltyBreakScopeResolution : 500
131194PenaltyBreakString : 1000
132195PenaltyBreakTemplateDeclaration : 10
133196PenaltyExcessCharacter : 1000000
134- PenaltyReturnTypeOnItsOwnLine : 60
135197PenaltyIndentedWhitespace : 0
198+ PenaltyReturnTypeOnItsOwnLine : 60
136199PointerAlignment : Middle
137200PPIndentWidth : -1
201+ QualifierAlignment : Custom
202+ QualifierOrder :
203+ - static
204+ - inline
205+ - constexpr
206+ - volatile
207+ - type
208+ - const
138209ReferenceAlignment : Pointer
139210ReflowComments : false
140211RemoveBracesLLVM : false
141- RequiresClausePosition : OwnLine
212+ RemoveParentheses : Leave
213+ RemoveSemicolon : false
214+ RequiresClausePosition : OwnLine
215+ RequiresExpressionIndentation : OuterScope
142216SeparateDefinitionBlocks : Leave
143217ShortNamespaceLines : 1
144- SortIncludes : true
218+ SkipMacroDefinitionBody : false
219+ SortIncludes : CaseSensitive
145220SortJavaStaticImport : Before
146- SortUsingDeclarations : true
221+ SortUsingDeclarations : LexicographicNumeric
147222SpaceAfterCStyleCast : false
148223SpaceAfterLogicalNot : false
149224SpaceAfterTemplateKeyword : true
225+ SpaceAroundPointerQualifiers : Default
150226SpaceBeforeAssignmentOperators : true
151227SpaceBeforeCaseColon : false
152228SpaceBeforeCpp11BracedList : false
153229SpaceBeforeCtorInitializerColon : true
154230SpaceBeforeInheritanceColon : true
231+ SpaceBeforeJsonColon : false
155232SpaceBeforeParens : Custom
156233SpaceBeforeParensOptions :
157234 AfterControlStatements : true
@@ -160,31 +237,39 @@ SpaceBeforeParensOptions:
160237 AfterFunctionDeclarationName : false
161238 AfterIfMacros : true
162239 AfterOverloadedOperator : false
163- AfterRequiresInClause : true
164- AfterRequiresInExpression : true
240+ AfterPlacementOperator : true
241+ AfterRequiresInClause : true
242+ AfterRequiresInExpression : true
165243 BeforeNonEmptyParentheses : false
166- SpaceAroundPointerQualifiers : Default
167244SpaceBeforeRangeBasedForLoopColon : true
245+ SpaceBeforeSquareBrackets : false
168246SpaceInEmptyBlock : false
169- SpaceInEmptyParentheses : false
170247SpacesBeforeTrailingComments : 1
171248SpacesInAngles : Never
172- SpacesInConditionalStatement : false
173249SpacesInContainerLiterals : false
174- SpacesInCStyleCastParentheses : false
175250SpacesInLineCommentPrefix :
176251 Minimum : 1
177252 Maximum : -1
178- SpacesInParentheses : false
253+ SpacesInParens : Never
254+ SpacesInParensOptions :
255+ InCStyleCasts : false
256+ InConditionalStatements : false
257+ InEmptyParentheses : false
258+ Other : false
179259SpacesInSquareBrackets : false
180- SpaceBeforeSquareBrackets : false
181- BitFieldColonSpacing : Both
182260Standard : c++20
183261StatementAttributeLikeMacros :
262+ - Q_EMIT
184263StatementMacros :
264+ - Q_UNUSED
265+ - QT_REQUIRE_VERSION
185266TabWidth : 4
186- UseCRLF : false
187267UseTab : Never
268+ VerilogBreakBetweenInstancePorts : true
188269WhitespaceSensitiveMacros :
189270 - SEQAN3_DEPRECATED_HEADER
271+ - CF_SWIFT_NAME
272+ - NS_SWIFT_NAME
273+ - PP_STRINGIZE
274+ - STRINGIZE
190275...
0 commit comments