Skip to content

Commit f93eb15

Browse files
authored
IMPR: Introduce version 2.0
Introduce version 2.0: - restructure the code - use conan to manage dependencies - use CMake scripts, instead of run.sh bash script - change shell in CI, this has effect on Windows the job - add ToDo.md file - update clang-format file - update clang-tidy file - update Doxyfile
1 parent 724252b commit f93eb15

56 files changed

Lines changed: 1330 additions & 1059 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 89 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,54 @@ Language: Cpp
44
AccessModifierOffset: -1
55
AlignAfterOpenBracket: Align
66
AlignArrayOfStructures: None
7-
AlignConsecutiveMacros: None
8-
AlignConsecutiveAssignments: None
9-
AlignConsecutiveBitFields: None
10-
AlignConsecutiveDeclarations: None
7+
AlignConsecutiveAssignments:
8+
Enabled: false
9+
AcrossEmptyLines: false
10+
AcrossComments: false
11+
AlignCompound: false
12+
AlignFunctionPointers: false
13+
PadOperators: true
14+
AlignConsecutiveBitFields:
15+
Enabled: false
16+
AcrossEmptyLines: false
17+
AcrossComments: false
18+
AlignCompound: false
19+
AlignFunctionPointers: false
20+
PadOperators: false
21+
AlignConsecutiveDeclarations:
22+
Enabled: false
23+
AcrossEmptyLines: false
24+
AcrossComments: false
25+
AlignCompound: false
26+
AlignFunctionPointers: false
27+
PadOperators: false
28+
AlignConsecutiveMacros:
29+
Enabled: false
30+
AcrossEmptyLines: false
31+
AcrossComments: false
32+
AlignCompound: false
33+
AlignFunctionPointers: false
34+
PadOperators: false
35+
AlignConsecutiveShortCaseStatements:
36+
Enabled: false
37+
AcrossEmptyLines: false
38+
AcrossComments: false
39+
AlignCaseColons: false
1140
AlignEscapedNewlines: Left
1241
AlignOperands: Align
13-
AlignTrailingComments: true
42+
AlignTrailingComments:
43+
Kind: Always
44+
OverEmptyLines: 0
1445
AllowAllArgumentsOnNextLine: true
1546
AllowAllParametersOfDeclarationOnNextLine: true
16-
AllowShortEnumsOnASingleLine: true
47+
AllowBreakBeforeNoexceptSpecifier: Never
1748
AllowShortBlocksOnASingleLine: Never
1849
AllowShortCaseLabelsOnASingleLine: false
50+
AllowShortCompoundRequirementOnASingleLine: true
51+
AllowShortEnumsOnASingleLine: true
1952
AllowShortFunctionsOnASingleLine: All
20-
AllowShortLambdasOnASingleLine: All
2153
AllowShortIfStatementsOnASingleLine: WithoutElse
54+
AllowShortLambdasOnASingleLine: All
2255
AllowShortLoopsOnASingleLine: true
2356
AlwaysBreakAfterDefinitionReturnType: None
2457
AlwaysBreakAfterReturnType: None
@@ -28,17 +61,18 @@ AttributeMacros:
2861
- __capability
2962
BinPackArguments: true
3063
BinPackParameters: true
64+
BitFieldColonSpacing: Both
3165
BraceWrapping:
3266
AfterCaseLabel: false
3367
AfterClass: false
3468
AfterControlStatement: Never
3569
AfterEnum: false
70+
AfterExternBlock: false
3671
AfterFunction: false
3772
AfterNamespace: false
3873
AfterObjCDeclaration: false
3974
AfterStruct: false
4075
AfterUnion: false
41-
AfterExternBlock: false
4276
BeforeCatch: false
4377
BeforeElse: false
4478
BeforeLambdaBody: false
@@ -47,33 +81,29 @@ BraceWrapping:
4781
SplitEmptyFunction: true
4882
SplitEmptyRecord: true
4983
SplitEmptyNamespace: true
84+
BreakAdjacentStringLiterals: true
85+
BreakAfterAttributes: Leave
86+
BreakAfterJavaFieldAnnotations: false
87+
BreakArrays: true
5088
BreakBeforeBinaryOperators: None
51-
BreakBeforeConceptDeclarations: true
89+
BreakBeforeConceptDeclarations: Always
5290
BreakBeforeBraces: Attach
53-
BreakBeforeInheritanceComma: false
54-
BreakInheritanceList: BeforeColon
91+
BreakBeforeInlineASMColon: OnlyMultiline
5592
BreakBeforeTernaryOperators: true
56-
BreakConstructorInitializersBeforeComma: false
5793
BreakConstructorInitializers: BeforeColon
58-
BreakAfterJavaFieldAnnotations: false
94+
BreakInheritanceList: BeforeColon
5995
BreakStringLiterals: true
6096
ColumnLimit: 80
6197
CommentPragmas: '^ IWYU pragma:'
62-
QualifierAlignment: Leave
6398
CompactNamespaces: false
6499
ConstructorInitializerIndentWidth: 4
65100
ContinuationIndentWidth: 4
66101
Cpp11BracedListStyle: true
67-
DeriveLineEnding: true
68102
DerivePointerAlignment: true
69103
DisableFormat: false
70104
EmptyLineAfterAccessModifier: Never
71105
EmptyLineBeforeAccessModifier: LogicalBlock
72106
ExperimentalAutoDetectBinPacking: false
73-
PackConstructorInitializers: NextLine
74-
BasedOnStyle: ''
75-
ConstructorInitializerAllOnOneLineOrOnePerLine: false
76-
AllowAllConstructorInitializersOnNextLine: true
77107
FixNamespaceComments: true
78108
ForEachMacros:
79109
- foreach
@@ -102,19 +132,30 @@ IncludeCategories:
102132
IncludeIsMainRegex: '([-_](test|unittest))?$'
103133
IncludeIsMainSourceRegex: ''
104134
IndentAccessModifiers: false
105-
IndentCaseLabels: true
106135
IndentCaseBlocks: false
136+
IndentCaseLabels: true
137+
IndentExternBlock: AfterExternBlock
107138
IndentGotoLabels: true
108139
IndentPPDirectives: None
109-
IndentExternBlock: AfterExternBlock
110-
IndentRequires: false
140+
IndentRequiresClause: true
111141
IndentWidth: 2
112142
IndentWrappedFunctionNames: false
143+
InsertBraces: false
144+
InsertNewlineAtEOF: false
113145
InsertTrailingCommas: None
146+
IntegerLiteralSeparator:
147+
Binary: 0
148+
BinaryMinDigits: 0
149+
Decimal: 0
150+
DecimalMinDigits: 0
151+
Hex: 0
152+
HexMinDigits: 0
114153
JavaScriptQuotes: Leave
115154
JavaScriptWrapImports: true
116155
KeepEmptyLinesAtTheStartOfBlocks: false
156+
KeepEmptyLinesAtEOF: false
117157
LambdaBodyIndentation: Signature
158+
LineEnding: DeriveLF
118159
MacroBlockBegin: ''
119160
MacroBlockEnd: ''
120161
MaxEmptyLinesToKeep: 1
@@ -124,18 +165,21 @@ ObjCBlockIndentWidth: 2
124165
ObjCBreakBeforeNestedBlockParam: true
125166
ObjCSpaceAfterProperty: false
126167
ObjCSpaceBeforeProtocolList: true
168+
PackConstructorInitializers: NextLine
127169
PenaltyBreakAssignment: 2
128170
PenaltyBreakBeforeFirstCallParameter: 1
129171
PenaltyBreakComment: 300
130172
PenaltyBreakFirstLessLess: 120
131173
PenaltyBreakOpenParenthesis: 0
174+
PenaltyBreakScopeResolution: 500
132175
PenaltyBreakString: 1000
133176
PenaltyBreakTemplateDeclaration: 10
134177
PenaltyExcessCharacter: 1000000
135-
PenaltyReturnTypeOnItsOwnLine: 200
136178
PenaltyIndentedWhitespace: 0
179+
PenaltyReturnTypeOnItsOwnLine: 200
137180
PointerAlignment: Left
138181
PPIndentWidth: -1
182+
QualifierAlignment: Leave
139183
RawStringFormats:
140184
- Language: Cpp
141185
Delimiters:
@@ -169,19 +213,26 @@ RawStringFormats:
169213
ReferenceAlignment: Pointer
170214
ReflowComments: true
171215
RemoveBracesLLVM: false
216+
RemoveParentheses: Leave
217+
RemoveSemicolon: false
218+
RequiresClausePosition: OwnLine
219+
RequiresExpressionIndentation: OuterScope
172220
SeparateDefinitionBlocks: Leave
173221
ShortNamespaceLines: 1
222+
SkipMacroDefinitionBody: false
174223
SortIncludes: CaseSensitive
175224
SortJavaStaticImport: Before
176-
SortUsingDeclarations: true
225+
SortUsingDeclarations: LexicographicNumeric
177226
SpaceAfterCStyleCast: false
178227
SpaceAfterLogicalNot: false
179228
SpaceAfterTemplateKeyword: true
229+
SpaceAroundPointerQualifiers: Default
180230
SpaceBeforeAssignmentOperators: true
181231
SpaceBeforeCaseColon: false
182232
SpaceBeforeCpp11BracedList: false
183233
SpaceBeforeCtorInitializerColon: true
184234
SpaceBeforeInheritanceColon: true
235+
SpaceBeforeJsonColon: false
185236
SpaceBeforeParens: ControlStatements
186237
SpaceBeforeParensOptions:
187238
AfterControlStatements: true
@@ -190,37 +241,40 @@ SpaceBeforeParensOptions:
190241
AfterFunctionDeclarationName: false
191242
AfterIfMacros: true
192243
AfterOverloadedOperator: false
244+
AfterPlacementOperator: true
245+
AfterRequiresInClause: false
246+
AfterRequiresInExpression: false
193247
BeforeNonEmptyParentheses: false
194-
SpaceAroundPointerQualifiers: Default
195248
SpaceBeforeRangeBasedForLoopColon: true
249+
SpaceBeforeSquareBrackets: false
196250
SpaceInEmptyBlock: false
197-
SpaceInEmptyParentheses: false
198251
SpacesBeforeTrailingComments: 2
199252
SpacesInAngles: Never
200-
SpacesInConditionalStatement: false
201253
SpacesInContainerLiterals: true
202-
SpacesInCStyleCastParentheses: false
203254
SpacesInLineCommentPrefix:
204255
Minimum: 1
205256
Maximum: -1
206-
SpacesInParentheses: false
257+
SpacesInParens: Never
258+
SpacesInParensOptions:
259+
InCStyleCasts: false
260+
InConditionalStatements: false
261+
InEmptyParentheses: false
262+
Other: false
207263
SpacesInSquareBrackets: false
208-
SpaceBeforeSquareBrackets: false
209-
BitFieldColonSpacing: Both
210264
Standard: Auto
211265
StatementAttributeLikeMacros:
212266
- Q_EMIT
213267
StatementMacros:
214268
- Q_UNUSED
215269
- QT_REQUIRE_VERSION
216270
TabWidth: 8
217-
UseCRLF: false
218271
UseTab: Never
272+
VerilogBreakBetweenInstancePorts: true
219273
WhitespaceSensitiveMacros:
220-
- STRINGIZE
221-
- PP_STRINGIZE
222274
- BOOST_PP_STRINGIZE
223-
- NS_SWIFT_NAME
224275
- CF_SWIFT_NAME
276+
- NS_SWIFT_NAME
277+
- PP_STRINGIZE
278+
- STRINGIZE
225279
...
226280

.clang-tidy

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
---
2-
Checks: '*,-modernize-use-trailing-return-type,-llvm-header-guard,-google-readability-avoid-underscore-in-googletest-name,-llvmlibc*'
2+
Checks: '*,
3+
# Using clang-format to order includes,
4+
-llvm-include-order,
5+
# Currently this is not relevant,
6+
-modernize-use-trailing-return-type,
7+
# Use underscore on purpose,
8+
-google-readability-avoid-underscore-in-googletest-name,
9+
# These are not relevant,
10+
-llvmlibc*'
311
WarningsAsErrors: '*'
412
FormatStyle: file
513
...

0 commit comments

Comments
 (0)