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 11Checks : >
22 bugprone-*,
33 clang-diagnostic-*,
4+ cppcoreguidelines-init-variables,
45 llvm-include-order,
56 llvm-namespace-comment,
67 misc-*,
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ class MaxOfVectorElements : public ppc::core::Task {
2727 }
2828
2929 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 ;
3232 // Check count elements of output
3333 is_count_values_correct = task_data->outputs_count [0 ] == 1 ;
3434 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 {
2727 }
2828
2929 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 ;
3232 // Check count elements of output
3333 is_count_values_correct = task_data->outputs_count [0 ] == 1 ;
3434 is_count_indexes_correct = task_data->outputs_count [1 ] == 1 ;
You can’t perform that action at this time.
0 commit comments