Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Overhaul #6

Open
wants to merge 45 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
3c82a15
Remove cxxtest
davschneller Jul 5, 2024
1f03304
Update main copyright
davschneller Jul 5, 2024
ab29592
Update CMakeLists
davschneller Jul 5, 2024
e1abab4
Add preliminary tests
davschneller Jul 5, 2024
1d7b5ab
Adjust gitignore
davschneller Jul 5, 2024
0e2846d
Sanitize readme
davschneller Jul 5, 2024
f6dff1c
Delete old files
davschneller Jul 6, 2024
49a9939
Deprecate some functions which are now in the standard
davschneller Jul 6, 2024
ed88f86
Generic refactoring
davschneller Jul 6, 2024
843e7c8
Cache environment variables
davschneller Jul 6, 2024
b14fa49
Reformat logger, allow to output from all ranks
davschneller Jul 6, 2024
f974703
Clang-format
davschneller Jul 6, 2024
36809c9
Fix optional arguments
davschneller Jul 6, 2024
760c997
Fix tests, part 1
davschneller Jul 6, 2024
77961e8
Format everything remaining
davschneller Jul 6, 2024
ccc7ad1
Add AUTHORS.txt
davschneller Jul 6, 2024
86277f7
Add a first version of the sanitizer script
davschneller Jul 8, 2024
5334182
Sanitize headers, license info
davschneller Jul 8, 2024
6893034
Fix tidy tests
davschneller Jul 8, 2024
af4f268
Fix env
davschneller Jul 8, 2024
9b926a9
Add reuse lint
davschneller Jul 8, 2024
13ea706
Update logging format
davschneller Jul 8, 2024
7124d97
Update logger again
davschneller Jul 8, 2024
48ebe58
Add LICENSES folder
davschneller Jul 12, 2024
62da6fb
REUSE conformancy
davschneller Jul 12, 2024
db16e30
Fix milliseconds display bug
davschneller Jul 12, 2024
14b0224
Introduce a global rank variable
davschneller Nov 6, 2024
45c82af
Remove deprecated functions
davschneller Nov 6, 2024
e060973
Further overhaul the logger
davschneller Nov 6, 2024
d0a9698
Extend logger to print iterables and structured bindings
davschneller Nov 6, 2024
57d4a3c
Update CI, part 1
davschneller Nov 6, 2024
91e6491
Enforce C++17 for the tests
davschneller Nov 6, 2024
4871125
Fix more logger bugs
davschneller Nov 6, 2024
6e9efc7
Change rank argument usage
davschneller Nov 11, 2024
a0aec46
Remove compile from `clang-tidy` call
davschneller Nov 11, 2024
9ec435a
Adjust string boolean false parsing
davschneller Nov 11, 2024
a8e3371
Attempt fixing a static assert in else
davschneller Nov 11, 2024
0398078
Re-add ninja to the tidy application
davschneller Nov 11, 2024
5f467fd
Format and tidy tests
davschneller Nov 11, 2024
7631812
Format and tidy utils
davschneller Nov 11, 2024
b0074a1
Update test info output
davschneller Nov 11, 2024
edbdf8b
Fix stringutils tests
davschneller Nov 11, 2024
3d2b5c5
Update CI
davschneller Nov 14, 2024
5103508
Fix includes
davschneller Nov 14, 2024
75d47df
Fix tidy path
davschneller Nov 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 129 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# SPDX-FileCopyrightText: 2024 Technical University of Munich
#
# SPDX-License-Identifier: BSD-3-Clause

Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: false
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 100
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentPPDirectives: None
IndentWidth: 2
IndentWrappedFunctionNames: true
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Left
QualifierAlignment: Left
ReflowComments: true
SortIncludes: false
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 8
UseTab: Never

Loading