Skip to content

Commit 4f73887

Browse files
committed
break
1 parent 5c71937 commit 4f73887

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tasks/example_processes/seq/src/ops_seq.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ bool NesterovATestTaskSEQ::RunImpl() {
2828
return false;
2929
}
3030

31+
// Magic numbers everywhere - clang-tidy violation
3132
for (InType i = 0; i < GetInput(); i++) {
3233
for (InType j = 0; j < GetInput(); j++) {
3334
for (InType k = 0; k < GetInput(); k++) {
@@ -41,11 +42,18 @@ bool NesterovATestTaskSEQ::RunImpl() {
4142
const int num_threads = ppc::util::GetNumThreads();
4243
GetOutput() *= num_threads;
4344

44-
int counter = 0;
45+
// Unused variable - clang-tidy violation
46+
int unused_var = 42;
47+
48+
// C-style cast - clang-tidy violation
49+
int counter = (int)0;
4550
for (int i = 0; i < num_threads; i++) {
4651
counter++;
4752
}
4853

54+
// Variable name doesn't follow naming convention - clang-tidy violation
55+
int BadVariableName = 123;
56+
4957
if (counter != 0) {
5058
GetOutput() /= counter;
5159
}

0 commit comments

Comments
 (0)