Skip to content

Commit 85a1e48

Browse files
Third Partychillenzer
Third Party
authored andcommitted
Run pre-commit
1 parent ff530bb commit 85a1e48

8 files changed

+18
-74
lines changed

.clang-format

+6-11
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
---
21
# General options
32
Language: Cpp
43
Standard: c++20
54
DisableFormat: false
6-
75
AccessModifierOffset: -4
86
AlignAfterOpenBracket: AlwaysBreak
97
AlignConsecutiveAssignments: false
@@ -35,7 +33,7 @@ BreakConstructorInitializers: BeforeComma
3533
BreakInheritanceList: BeforeComma
3634
BreakStringLiterals: true
3735
ColumnLimit: 119
38-
CommentPragmas: '^ COMMENT pragma:'
36+
CommentPragmas: "^ COMMENT pragma:"
3937
CompactNamespaces: false
4038
ConstructorInitializerAllOnOneLineOrOnePerLine: true
4139
ConstructorInitializerIndentWidth: 4
@@ -46,8 +44,8 @@ DerivePointerAlignment: false
4644
ExperimentalAutoDetectBinPacking: false
4745
FixNamespaceComments: true
4846
IncludeBlocks: Regroup
49-
IncludeIsMainRegex: '(Test)?$'
50-
IncludeIsMainSourceRegex: ''
47+
IncludeIsMainRegex: "(Test)?$"
48+
IncludeIsMainSourceRegex: ""
5149
IndentCaseBlocks: true
5250
IndentCaseLabels: false
5351
IndentExternBlock: AfterExternBlock
@@ -56,8 +54,8 @@ IndentPPDirectives: AfterHash
5654
IndentWidth: 4
5755
IndentWrappedFunctionNames: false
5856
KeepEmptyLinesAtTheStartOfBlocks: false
59-
MacroBlockBegin: ''
60-
MacroBlockEnd: ''
57+
MacroBlockBegin: ""
58+
MacroBlockEnd: ""
6159
MaxEmptyLinesToKeep: 2
6260
NamespaceIndentation: All
6361
PenaltyBreakAssignment: 2
@@ -84,7 +82,7 @@ SpaceBeforeRangeBasedForLoopColon: true
8482
SpaceInEmptyBlock: false
8583
SpaceInEmptyParentheses: false
8684
SpacesBeforeTrailingComments: 1
87-
SpacesInAngles: false
85+
SpacesInAngles: false
8886
SpacesInConditionalStatement: false
8987
SpacesInContainerLiterals: false
9088
SpacesInCStyleCastParentheses: false
@@ -94,7 +92,6 @@ SpaceBeforeSquareBrackets: false
9492
TabWidth: 4
9593
UseCRLF: false
9694
UseTab: Never
97-
9895
# Project specific options -- uncomment and modify as needed
9996
#IncludeCategories:
10097
# - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
@@ -110,5 +107,3 @@ UseTab: Never
110107
# Future options - not supported in clang-format 11
111108
# BitFieldColonSpacing: Both
112109
# OperandAlignmentStyle: Align
113-
114-
...

.clang-tidy

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
---
2-
Checks: '*,-llvm-header-guard,-fuchsia-default-arguments-declarations,-cppcoreguidelines-no-malloc,-cppcoreguidelines-owning-memory,-misc-non-private-member-variables-in-classes'
3-
HeaderFilterRegex: '.*'
1+
Checks: "*, -llvm-header-guard, -fuchsia-default-arguments-declarations, -cppcoreguidelines-no-malloc, -cppcoreguidelines-owning-memory, -misc-non-private-member-variables-in-classes"
2+
HeaderFilterRegex: ".*"

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ repos:
1010
rev: v18.1.8
1111
hooks:
1212
- id: clang-format
13+
files: \.(cpp|hpp)
1314
- repo: https://github.com/pre-commit/pre-commit-hooks
1415
rev: v4.5.0
1516
hooks:

.travis.yml

-56
This file was deleted.

.yamllint

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
extends: default
2+
rules:
3+
document-start: disable
4+
truthy: disable
5+
comments: disable
6+
line-length: disable

.zenodo.json

-1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,3 @@
4949
}
5050
]
5151
}
52-

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Change Log / Release Log for mallocMC
66
**Date:** 2021-02-18
77

88
This release removes the native usage of CUDA by alpaka.
9-
Attention: This release depends on an unreleased [alpaka 0.5.0dev](https://github.com/alpaka-group/alpaka/commit/34870a73ecf702069465aa030fbdf301c4d22c61)
9+
Attention: This release depends on an unreleased [alpaka 0.5.0dev](https://github.com/alpaka-group/alpaka/commit/34870a73ecf702069465aa030fbdf301c4d22c61)
1010
version before the heavy alpaka namespace refactoring.
1111

1212
### Changes to mallocMC 2.4.0crp
@@ -41,7 +41,7 @@ This release removes the Boost dependency and switched to C++11.
4141

4242
**Bug fixes**
4343
- Choose the value for the -arch nvcc flag depending on CUDA version #164 #165
44-
44+
4545
**Misc:**
4646
- Travis CI: GCC 5.5.0 + CUDA 9.1.85 #170
4747
- Adding headers to projects and applied clang-tidy #171

tests/verify_heap.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ auto main(int argc, char** argv) -> int
9797
{
9898
if(correct)
9999
{
100-
std::cout << "\033[0;32mverification successful \033[0m\n";
100+
std::cout << "\033[0;32mverification successful \033[0m\n";
101101
return 0;
102102
}
103103
else

0 commit comments

Comments
 (0)