Skip to content

Commit 65294a4

Browse files
committed
fix clang format
1 parent eea042e commit 65294a4

15 files changed

Lines changed: 17 additions & 51 deletions

File tree

modules/core/perf/func_tests/test_task.hpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ class TestTask : public ppc::core::Task {
1414
public:
1515
explicit TestTask(const std::vector<T>& in) : input_(in) {}
1616

17-
bool ValidationImpl() override {
18-
return !input_.empty();
19-
}
17+
bool ValidationImpl() override { return !input_.empty(); }
2018

2119
bool PreProcessingImpl() override {
2220
output_ = 0;
@@ -30,9 +28,7 @@ class TestTask : public ppc::core::Task {
3028
return true;
3129
}
3230

33-
bool PostProcessingImpl() override {
34-
return true;
35-
}
31+
bool PostProcessingImpl() override { return true; }
3632

3733
T Get() { return output_; }
3834

modules/core/task/func_tests/test_task.hpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ class TestTask : public ppc::core::Task {
1313
public:
1414
explicit TestTask(const std::vector<T>& in) : input_(in) {}
1515

16-
bool ValidationImpl() override {
17-
return !input_.empty();
18-
}
16+
bool ValidationImpl() override { return !input_.empty(); }
1917

2018
bool PreProcessingImpl() override {
2119
output_ = 0;
@@ -29,9 +27,7 @@ class TestTask : public ppc::core::Task {
2927
return true;
3028
}
3129

32-
bool PostProcessingImpl() override {
33-
return true;
34-
}
30+
bool PostProcessingImpl() override { return true; }
3531

3632
T Get() { return output_; }
3733

modules/core/task/include/task.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ class Task {
2929
virtual bool PostProcessing() final;
3030

3131
// get state of testing
32-
StateOfTesting& GetStateOfTesting() {
33-
return state_of_testing_;
34-
}
32+
StateOfTesting &GetStateOfTesting() { return state_of_testing_; }
3533

3634
virtual ~Task();
3735

tasks/all/example/include/ops_all.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ class TestTaskALL : public ppc::core::Task {
1414
bool PreProcessingImpl() override;
1515
bool RunImpl() override;
1616
bool PostProcessingImpl() override;
17-
std::vector<int> Get() {
18-
return output_;
19-
}
17+
std::vector<int> Get() { return output_; }
2018

2119
private:
2220
std::vector<int> input_, output_;

tasks/all/example/src/ops_all.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,4 @@ bool nesterov_a_test_task_all::TestTaskALL::RunImpl() {
6868
return true;
6969
}
7070

71-
bool nesterov_a_test_task_all::TestTaskALL::PostProcessingImpl() {
72-
return true;
73-
}
71+
bool nesterov_a_test_task_all::TestTaskALL::PostProcessingImpl() { return true; }

tasks/mpi/example/include/ops_mpi.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ class TestTaskMPI : public ppc::core::Task {
1414
bool PreProcessingImpl() override;
1515
bool RunImpl() override;
1616
bool PostProcessingImpl() override;
17-
std::vector<int> Get() {
18-
return output_;
19-
}
17+
std::vector<int> Get() { return output_; }
2018

2119
private:
2220
std::vector<int> input_, output_;

tasks/mpi/example/src/ops_mpi.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,4 @@ void nesterov_a_test_task_mpi::TestTaskMPI::MultiplyColumnMajor() {
5555
}
5656
}
5757

58-
bool nesterov_a_test_task_mpi::TestTaskMPI::PostProcessingImpl() {
59-
return true;
60-
}
58+
bool nesterov_a_test_task_mpi::TestTaskMPI::PostProcessingImpl() { return true; }

tasks/omp/example/include/ops_omp.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ class TestTaskOpenMP : public ppc::core::Task {
1414
bool PreProcessingImpl() override;
1515
bool RunImpl() override;
1616
bool PostProcessingImpl() override;
17-
std::vector<int> Get() {
18-
return output_;
19-
}
17+
std::vector<int> Get() { return output_; }
2018

2119
private:
2220
std::vector<int> input_, output_;

tasks/omp/example/src/ops_omp.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,4 @@ bool nesterov_a_test_task_omp::TestTaskOpenMP::RunImpl() {
3434
return true;
3535
}
3636

37-
bool nesterov_a_test_task_omp::TestTaskOpenMP::PostProcessingImpl() {
38-
return true;
39-
}
37+
bool nesterov_a_test_task_omp::TestTaskOpenMP::PostProcessingImpl() { return true; }

tasks/seq/example/include/ops_seq.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ class TestTaskSequential : public ppc::core::Task {
1414
bool PreProcessingImpl() override;
1515
bool RunImpl() override;
1616
bool PostProcessingImpl() override;
17-
std::vector<int> Get() {
18-
return output_;
19-
}
17+
std::vector<int> Get() { return output_; }
2018

2119
private:
2220
std::vector<int> input_, output_;

0 commit comments

Comments
 (0)