Skip to content

Commit 89b3bf0

Browse files
authored
Merge pull request #49 from eseiler/infra/lib
[INFRA] Make TDL a static library
2 parents 77fc560 + 4181563 commit 89b3bf0

35 files changed

+1611
-1247
lines changed

.clang-format

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

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# SPDX-FileCopyrightText: 2006-2023, Knut Reinert & Freie Universität Berlin
2-
# SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
1+
# SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin
2+
# SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
33
# SPDX-License-Identifier: CC0-1.0
44

55
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

.github/workflows/ci_cmake.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# SPDX-FileCopyrightText: 2006-2023, Knut Reinert & Freie Universität Berlin
2-
# SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
1+
# SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin
2+
# SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
33
# SPDX-License-Identifier: CC0-1.0
44

55
name: CMake

.github/workflows/ci_license_check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# SPDX-FileCopyrightText: 2006-2023, Knut Reinert & Freie Universität Berlin
2-
# SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
1+
# SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin
2+
# SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
33
# SPDX-License-Identifier: CC0-1.0
44

55
name: REUSE Compliance Check

.github/workflows/ci_macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# SPDX-FileCopyrightText: 2006-2023, Knut Reinert & Freie Universität Berlin
2-
# SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
1+
# SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin
2+
# SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
33
# SPDX-License-Identifier: CC0-1.0
44

55
name: macOS 12

.github/workflows/ci_mingw.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# SPDX-FileCopyrightText: 2006-2023, Knut Reinert & Freie Universität Berlin
2-
# SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
1+
# SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin
2+
# SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
33
# SPDX-License-Identifier: CC0-1.0
44

55
name: Windows MinGW

.github/workflows/ci_ubuntu2004.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# SPDX-FileCopyrightText: 2006-2023, Knut Reinert & Freie Universität Berlin
2-
# SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
1+
# SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin
2+
# SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
33
# SPDX-License-Identifier: CC0-1.0
44

55
name: Ubuntu 20.04

.github/workflows/ci_ubuntu2204.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# SPDX-FileCopyrightText: 2006-2023, Knut Reinert & Freie Universität Berlin
2-
# SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
1+
# SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin
2+
# SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
33
# SPDX-License-Identifier: CC0-1.0
44

55
name: Ubuntu 22.04

.github/workflows/ci_win.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# SPDX-FileCopyrightText: 2006-2023, Knut Reinert & Freie Universität Berlin
2-
# SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
1+
# SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin
2+
# SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
33
# SPDX-License-Identifier: CC0-1.0
44

55
name: Windows

.github/workflows/update_example.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# SPDX-FileCopyrightText: 2006-2023, Knut Reinert & Freie Universität Berlin
2-
# SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
1+
# SPDX-FileCopyrightText: 2006-2024, Knut Reinert & Freie Universität Berlin
2+
# SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik
33
# SPDX-License-Identifier: CC0-1.0
44

55
name: Example

0 commit comments

Comments
 (0)