File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
max_of_vector_elements/include
min_of_vector_elements/include Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
Checks : >
2
2
bugprone-*,
3
3
clang-diagnostic-*,
4
+ cppcoreguidelines-init-variables,
4
5
llvm-include-order,
5
6
llvm-namespace-comment,
6
7
misc-*,
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ class MaxOfVectorElements : public ppc::core::Task {
27
27
}
28
28
29
29
bool ValidationImpl () override {
30
- bool is_count_values_correct;
31
- bool is_count_indexes_correct;
30
+ bool is_count_values_correct = false ;
31
+ bool is_count_indexes_correct = false ;
32
32
// Check count elements of output
33
33
is_count_values_correct = task_data->outputs_count [0 ] == 1 ;
34
34
is_count_indexes_correct = task_data->outputs_count [1 ] == 1 ;
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ class MinOfVectorElements : public ppc::core::Task {
27
27
}
28
28
29
29
bool ValidationImpl () override {
30
- bool is_count_values_correct;
31
- bool is_count_indexes_correct;
30
+ bool is_count_values_correct = false ;
31
+ bool is_count_indexes_correct = false ;
32
32
// Check count elements of output
33
33
is_count_values_correct = task_data->outputs_count [0 ] == 1 ;
34
34
is_count_indexes_correct = task_data->outputs_count [1 ] == 1 ;
You can’t perform that action at this time.
0 commit comments