Skip to content

Commit 4ed6881

Browse files
authored
Fix formatting issues (#161)
1 parent 32d76a7 commit 4ed6881

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

modules/core/perf/include/perf.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ struct PerfResults {
2727
class Perf {
2828
public:
2929
// Init performance analysis with initialized task and initialized data
30-
explicit Perf(const std::shared_ptr<Task> &task);
30+
explicit Perf(const std::shared_ptr<Task>& task);
3131
// Set task with initialized task and initialized data for performance
3232
// analysis c
33-
void SetTask(const std::shared_ptr<Task> &task);
33+
void SetTask(const std::shared_ptr<Task>& task);
3434
// Check performance of full task's pipeline: pre_processing() ->
3535
// validation() -> run() -> post_processing()
3636
void PipelineRun(const std::shared_ptr<PerfAttr>& perf_attr,
37-
const std::shared_ptr<ppc::core::PerfResults>& perf_results);
37+
const std::shared_ptr<ppc::core::PerfResults>& perf_results);
3838
// Check performance of task's run() function
3939
void TaskRun(const std::shared_ptr<PerfAttr>& perf_attr, const std::shared_ptr<ppc::core::PerfResults>& perf_results);
4040
// Pint results for automation checkers
@@ -43,7 +43,7 @@ class Perf {
4343
private:
4444
std::shared_ptr<Task> task;
4545
static void CommonRun(const std::shared_ptr<PerfAttr>& perf_attr, const std::function<void()>& pipeline,
46-
const std::shared_ptr<ppc::core::PerfResults>& perf_results);
46+
const std::shared_ptr<ppc::core::PerfResults>& perf_results);
4747
};
4848

4949
} // namespace core

modules/core/perf/src/perf.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
#include <sstream>
88
#include <utility>
99

10-
ppc::core::Perf::Perf(const std::shared_ptr<Task> &task) { SetTask(task); }
10+
ppc::core::Perf::Perf(const std::shared_ptr<Task>& task) { SetTask(task); }
1111

12-
void ppc::core::Perf::SetTask(const std::shared_ptr<Task> &task) {
12+
void ppc::core::Perf::SetTask(const std::shared_ptr<Task>& task) {
1313
task->get_data()->state_of_testing = TaskData::StateOfTesting::PERF;
1414
this->task = task;
1515
}
1616

1717
void ppc::core::Perf::PipelineRun(const std::shared_ptr<PerfAttr>& perf_attr,
18-
const std::shared_ptr<ppc::core::PerfResults>& perf_results) {
18+
const std::shared_ptr<ppc::core::PerfResults>& perf_results) {
1919
perf_results->type_of_running = PerfResults::TypeOfRunning::PIPELINE;
2020

2121
CommonRun(
@@ -30,7 +30,7 @@ void ppc::core::Perf::PipelineRun(const std::shared_ptr<PerfAttr>& perf_attr,
3030
}
3131

3232
void ppc::core::Perf::TaskRun(const std::shared_ptr<PerfAttr>& perf_attr,
33-
const std::shared_ptr<ppc::core::PerfResults>& perf_results) {
33+
const std::shared_ptr<ppc::core::PerfResults>& perf_results) {
3434
perf_results->type_of_running = PerfResults::TypeOfRunning::TASK_RUN;
3535

3636
task->validation();
@@ -45,7 +45,7 @@ void ppc::core::Perf::TaskRun(const std::shared_ptr<PerfAttr>& perf_attr,
4545
}
4646

4747
void ppc::core::Perf::CommonRun(const std::shared_ptr<PerfAttr>& perf_attr, const std::function<void()>& pipeline,
48-
const std::shared_ptr<ppc::core::PerfResults>& perf_results) {
48+
const std::shared_ptr<ppc::core::PerfResults>& perf_results) {
4949
auto begin = perf_attr->current_timer();
5050
for (uint64_t i = 0; i < perf_attr->num_running; i++) {
5151
pipeline();

modules/core/task/src/task.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ bool ppc::core::Task::post_processing() {
3636
}
3737

3838
void ppc::core::Task::internal_order_test(const std::string& str) {
39-
if (!functions_order.empty() && str == functions_order.back() && str == "run") { return;
40-
}
39+
if (!functions_order.empty() && str == functions_order.back() && str == "run") {
40+
return;
41+
}
4142

4243
functions_order.push_back(str);
4344

0 commit comments

Comments
 (0)