Skip to content

Commit ae01ab5

Browse files
committed
Final style fix according to pre-commit
1 parent a2d16d2 commit ae01ab5

1,064 files changed

Lines changed: 205209 additions & 204112 deletions

File tree

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: 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/.*)'

.devcontainer/devcontainer.json

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
{
2-
"name": "Parallel Programming Course",
3-
"image": "ghcr.io/learning-process/ppc-ubuntu:1.1",
4-
"customizations": {
5-
"vscode": {
6-
"extensions": [
7-
"ms-vscode.cpptools-extension-pack",
8-
"ms-vscode.cmake-tools",
9-
"ms-python.python"
10-
],
11-
"settings": {
12-
"cmake.configureOnOpen": true,
13-
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools"
14-
}
15-
}
16-
},
17-
"postCreateCommand": "python3 -m pip install -r requirements.txt"
18-
}
1+
{
2+
"name": "Parallel Programming Course",
3+
"image": "ghcr.io/learning-process/ppc-ubuntu:1.1",
4+
"customizations": {
5+
"vscode": {
6+
"extensions": [
7+
"ms-vscode.cpptools-extension-pack",
8+
"ms-vscode.cmake-tools",
9+
"ms-python.python"
10+
],
11+
"settings": {
12+
"cmake.configureOnOpen": true,
13+
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools"
14+
}
15+
}
16+
},
17+
"postCreateCommand": "python3 -m pip install -r requirements.txt",
18+
{
19+
"runArgs": ["--memory=2g", "--cpus=2"],
20+
"containerEnv": {"MAKEFLAGS": "-j1"}
21+
}
22+
23+
}

.editorconfig

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
root = true
2-
3-
[*]
4-
charset = utf-8
5-
end_of_line = lf
6-
insert_final_newline = true
7-
trim_trailing_whitespace = true
8-
indent_style = space
9-
indent_size = 4
10-
11-
[*.{cpp,h,hpp,c}]
12-
indent_size = 2
13-
14-
[*.{yml,yaml}]
15-
indent_size = 2
16-
17-
[*.py]
18-
indent_size = 4
19-
20-
[Makefile]
21-
indent_style = tab
22-
23-
[{CMakeLists.txt,*.cmake}]
24-
indent_size = 2
25-
26-
[*.{md,rst}]
27-
trim_trailing_whitespace = false
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
indent_style = space
9+
indent_size = 4
10+
11+
[*.{cpp,h,hpp,c}]
12+
indent_size = 2
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2
16+
17+
[*.py]
18+
indent_size = 4
19+
20+
[Makefile]
21+
indent_style = tab
22+
23+
[{CMakeLists.txt,*.cmake}]
24+
indent_size = 2
25+
26+
[*.{md,rst}]
27+
trim_trailing_whitespace = false

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @aobolensk @allnes
1+
* @aobolensk @allnes

0 commit comments

Comments
 (0)