Skip to content

Commit 2d7240b

Browse files
committed
fixed pre-commit
1 parent 7ad81fc commit 2d7240b

File tree

98 files changed

+5970
-5970
lines changed

Some content is hidden

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

98 files changed

+5970
-5970
lines changed

.clang-format

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
Language: Cpp
2-
Standard: c++20
3-
BasedOnStyle: Google
4-
ColumnLimit: 120
5-
UseTab: Never
6-
AllowShortFunctionsOnASingleLine: Empty
7-
IndentPPDirectives: AfterHash
8-
SortIncludes: true
9-
FixNamespaceComments: true
10-
InsertBraces: true
11-
QualifierAlignment: Left
12-
PointerAlignment: Right
13-
ReferenceAlignment: Right
14-
SortUsingDeclarations: LexicographicNumeric
15-
InsertNewlineAtEOF: true
16-
LambdaBodyIndentation: OuterScope
17-
MaxEmptyLinesToKeep: 1
18-
KeepEmptyLines:
19-
AtStartOfFile: false
20-
AtStartOfBlock: false
21-
AtEndOfFile: false
22-
LineEnding: LF
1+
Language: Cpp
2+
Standard: c++20
3+
BasedOnStyle: Google
4+
ColumnLimit: 120
5+
UseTab: Never
6+
AllowShortFunctionsOnASingleLine: Empty
7+
IndentPPDirectives: AfterHash
8+
SortIncludes: true
9+
FixNamespaceComments: true
10+
InsertBraces: true
11+
QualifierAlignment: Left
12+
PointerAlignment: Right
13+
ReferenceAlignment: Right
14+
SortUsingDeclarations: LexicographicNumeric
15+
InsertNewlineAtEOF: true
16+
LambdaBodyIndentation: OuterScope
17+
MaxEmptyLinesToKeep: 1
18+
KeepEmptyLines:
19+
AtStartOfFile: false
20+
AtStartOfBlock: false
21+
AtEndOfFile: false
22+
LineEnding: LF

.clang-tidy

Lines changed: 104 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,104 @@
1-
Checks: >
2-
bugprone-*,
3-
cert-dcl50-cpp,
4-
cert-dcl58-cpp,
5-
cert-env33-c,
6-
cert-err34-c,
7-
cert-err52-cpp,
8-
cert-err60-cpp,
9-
cert-flp30-c,
10-
cert-mem57-cpp,
11-
cert-msc50-cpp,
12-
cert-msc51-cpp,
13-
cert-oop57-cpp,
14-
cert-oop58-cpp,
15-
concurrency-*,
16-
cppcoreguidelines-*,
17-
google-*,
18-
llvm-include-order,
19-
llvm-namespace-comment,
20-
misc-*,
21-
modernize-*,
22-
mpi-*,
23-
openmp-*,
24-
performance-*,
25-
portability-*,
26-
readability-*,
27-
-bugprone-casting-through-void,
28-
-bugprone-easily-swappable-parameters,
29-
-cppcoreguidelines-avoid-magic-numbers,
30-
-cppcoreguidelines-non-private-member-variables-in-classes,
31-
-cppcoreguidelines-owning-memory,
32-
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
33-
-cppcoreguidelines-pro-type-reinterpret-cast,
34-
-cppcoreguidelines-pro-type-vararg,
35-
-cppcoreguidelines-special-member-functions,
36-
-misc-const-correctness,
37-
-misc-non-private-member-variables-in-classes,
38-
-modernize-avoid-c-arrays,
39-
-modernize-use-trailing-return-type,
40-
-portability-avoid-pragma-once,
41-
-portability-template-virtual-member-function,
42-
-readability-magic-numbers
43-
44-
WarningsAsErrors: "*"
45-
HeaderFilterRegex: '.*/(modules|tasks)/.*'
46-
47-
CheckOptions:
48-
- key: readability-identifier-naming.ClassCase
49-
value: CamelCase
50-
- key: readability-identifier-naming.ClassMemberCase
51-
value: lower_case
52-
- key: readability-identifier-naming.ConstexprVariableCase
53-
value: CamelCase
54-
- key: readability-identifier-naming.ConstexprVariablePrefix
55-
value: k
56-
- key: readability-identifier-naming.EnumCase
57-
value: CamelCase
58-
- key: readability-identifier-naming.EnumConstantCase
59-
value: CamelCase
60-
- key: readability-identifier-naming.EnumConstantPrefix
61-
value: k
62-
- key: readability-identifier-naming.FunctionCase
63-
value: CamelCase
64-
- key: readability-identifier-naming.GlobalConstantCase
65-
value: CamelCase
66-
- key: readability-identifier-naming.GlobalConstantPrefix
67-
value: k
68-
- key: readability-identifier-naming.StaticConstantCase
69-
value: CamelCase
70-
- key: readability-identifier-naming.StaticConstantPrefix
71-
value: k
72-
- key: readability-identifier-naming.StaticVariableCase
73-
value: lower_case
74-
- key: readability-identifier-naming.MacroDefinitionCase
75-
value: UPPER_CASE
76-
- key: readability-identifier-naming.MacroDefinitionIgnoredRegexp
77-
value: '^[A-Z]+(_[A-Z]+)*_$'
78-
- key: readability-identifier-naming.MemberCase
79-
value: lower_case
80-
- key: readability-identifier-naming.PrivateMemberSuffix
81-
value: _
82-
- key: readability-identifier-naming.PublicMemberSuffix
83-
value: ''
84-
- key: readability-identifier-naming.NamespaceCase
85-
value: lower_case
86-
- key: readability-identifier-naming.ParameterCase
87-
value: lower_case
88-
- key: readability-identifier-naming.TypeAliasCase
89-
value: CamelCase
90-
- key: readability-identifier-naming.TypedefCase
91-
value: CamelCase
92-
- key: readability-identifier-naming.VariableCase
93-
value: lower_case
94-
- key: readability-identifier-naming.IgnoreMainLikeFunctions
95-
value: 1
96-
# Functions with scores beyond 15 are typically flagged as potentially problematic (empirically)
97-
- key: readability-function-cognitive-complexity.Threshold
98-
value: 15 # default: 25
99-
- key: readability-identifier-length.MinimumVariableNameLength
100-
value: 1
101-
- key: readability-identifier-length.MinimumParameterNameLength
102-
value: 1
103-
- key: misc-include-cleaner.IgnoreHeaders
104-
value: '(__chrono/.*|stdlib\.h|3rdparty/.*)'
1+
Checks: >
2+
bugprone-*,
3+
cert-dcl50-cpp,
4+
cert-dcl58-cpp,
5+
cert-env33-c,
6+
cert-err34-c,
7+
cert-err52-cpp,
8+
cert-err60-cpp,
9+
cert-flp30-c,
10+
cert-mem57-cpp,
11+
cert-msc50-cpp,
12+
cert-msc51-cpp,
13+
cert-oop57-cpp,
14+
cert-oop58-cpp,
15+
concurrency-*,
16+
cppcoreguidelines-*,
17+
google-*,
18+
llvm-include-order,
19+
llvm-namespace-comment,
20+
misc-*,
21+
modernize-*,
22+
mpi-*,
23+
openmp-*,
24+
performance-*,
25+
portability-*,
26+
readability-*,
27+
-bugprone-casting-through-void,
28+
-bugprone-easily-swappable-parameters,
29+
-cppcoreguidelines-avoid-magic-numbers,
30+
-cppcoreguidelines-non-private-member-variables-in-classes,
31+
-cppcoreguidelines-owning-memory,
32+
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
33+
-cppcoreguidelines-pro-type-reinterpret-cast,
34+
-cppcoreguidelines-pro-type-vararg,
35+
-cppcoreguidelines-special-member-functions,
36+
-misc-const-correctness,
37+
-misc-non-private-member-variables-in-classes,
38+
-modernize-avoid-c-arrays,
39+
-modernize-use-trailing-return-type,
40+
-portability-avoid-pragma-once,
41+
-portability-template-virtual-member-function,
42+
-readability-magic-numbers
43+
44+
WarningsAsErrors: "*"
45+
HeaderFilterRegex: '.*/(modules|tasks)/.*'
46+
47+
CheckOptions:
48+
- key: readability-identifier-naming.ClassCase
49+
value: CamelCase
50+
- key: readability-identifier-naming.ClassMemberCase
51+
value: lower_case
52+
- key: readability-identifier-naming.ConstexprVariableCase
53+
value: CamelCase
54+
- key: readability-identifier-naming.ConstexprVariablePrefix
55+
value: k
56+
- key: readability-identifier-naming.EnumCase
57+
value: CamelCase
58+
- key: readability-identifier-naming.EnumConstantCase
59+
value: CamelCase
60+
- key: readability-identifier-naming.EnumConstantPrefix
61+
value: k
62+
- key: readability-identifier-naming.FunctionCase
63+
value: CamelCase
64+
- key: readability-identifier-naming.GlobalConstantCase
65+
value: CamelCase
66+
- key: readability-identifier-naming.GlobalConstantPrefix
67+
value: k
68+
- key: readability-identifier-naming.StaticConstantCase
69+
value: CamelCase
70+
- key: readability-identifier-naming.StaticConstantPrefix
71+
value: k
72+
- key: readability-identifier-naming.StaticVariableCase
73+
value: lower_case
74+
- key: readability-identifier-naming.MacroDefinitionCase
75+
value: UPPER_CASE
76+
- key: readability-identifier-naming.MacroDefinitionIgnoredRegexp
77+
value: '^[A-Z]+(_[A-Z]+)*_$'
78+
- key: readability-identifier-naming.MemberCase
79+
value: lower_case
80+
- key: readability-identifier-naming.PrivateMemberSuffix
81+
value: _
82+
- key: readability-identifier-naming.PublicMemberSuffix
83+
value: ''
84+
- key: readability-identifier-naming.NamespaceCase
85+
value: lower_case
86+
- key: readability-identifier-naming.ParameterCase
87+
value: lower_case
88+
- key: readability-identifier-naming.TypeAliasCase
89+
value: CamelCase
90+
- key: readability-identifier-naming.TypedefCase
91+
value: CamelCase
92+
- key: readability-identifier-naming.VariableCase
93+
value: lower_case
94+
- key: readability-identifier-naming.IgnoreMainLikeFunctions
95+
value: 1
96+
# Functions with scores beyond 15 are typically flagged as potentially problematic (empirically)
97+
- key: readability-function-cognitive-complexity.Threshold
98+
value: 15 # default: 25
99+
- key: readability-identifier-length.MinimumVariableNameLength
100+
value: 1
101+
- key: readability-identifier-length.MinimumParameterNameLength
102+
value: 1
103+
- key: misc-include-cleaner.IgnoreHeaders
104+
value: '(__chrono/.*|stdlib\.h|3rdparty/.*)'
Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
name: Archive installed package
2-
inputs:
3-
path:
4-
description: Directory to archive
5-
required: true
6-
name:
7-
description: Artifact name
8-
required: true
9-
runs:
10-
using: composite
11-
steps:
12-
- id: set-archive
13-
shell: bash
14-
run: |
15-
if [ "${RUNNER_OS}" = "Windows" ]; then
16-
echo "archive=${{ inputs.name }}.zip" >> "$GITHUB_OUTPUT"
17-
else
18-
echo "archive=${{ inputs.name }}.tar.gz" >> "$GITHUB_OUTPUT"
19-
fi
20-
- name: Compress directory (unix)
21-
if: runner.os != 'Windows'
22-
shell: bash
23-
run: tar -czvf "${{ steps.set-archive.outputs.archive }}" -C "${{ inputs.path }}" .
24-
- name: Compress directory (windows)
25-
if: runner.os == 'Windows'
26-
shell: pwsh
27-
run: Compress-Archive -Path ${{ inputs.path }} -DestinationPath ${{ steps.set-archive.outputs.archive }}
28-
- name: Upload artifact
29-
uses: actions/upload-artifact@v4
30-
with:
31-
name: ${{ inputs.name }}
32-
path: ${{ steps.set-archive.outputs.archive }}
1+
name: Archive installed package
2+
inputs:
3+
path:
4+
description: Directory to archive
5+
required: true
6+
name:
7+
description: Artifact name
8+
required: true
9+
runs:
10+
using: composite
11+
steps:
12+
- id: set-archive
13+
shell: bash
14+
run: |
15+
if [ "${RUNNER_OS}" = "Windows" ]; then
16+
echo "archive=${{ inputs.name }}.zip" >> "$GITHUB_OUTPUT"
17+
else
18+
echo "archive=${{ inputs.name }}.tar.gz" >> "$GITHUB_OUTPUT"
19+
fi
20+
- name: Compress directory (unix)
21+
if: runner.os != 'Windows'
22+
shell: bash
23+
run: tar -czvf "${{ steps.set-archive.outputs.archive }}" -C "${{ inputs.path }}" .
24+
- name: Compress directory (windows)
25+
if: runner.os == 'Windows'
26+
shell: pwsh
27+
run: Compress-Archive -Path ${{ inputs.path }} -DestinationPath ${{ steps.set-archive.outputs.archive }}
28+
- name: Upload artifact
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: ${{ inputs.name }}
32+
path: ${{ steps.set-archive.outputs.archive }}

0 commit comments

Comments
 (0)