Skip to content

Commit 35f84b1

Browse files
authored
Apply more clang-format rules (#442)
1 parent e2a3218 commit 35f84b1

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.clang-format

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ ColumnLimit: 120
55
UseTab: Never
66
QualifierAlignment: Left
77
PointerAlignment: Right
8+
ReferenceAlignment: Right
9+
SortUsingDeclarations: LexicographicNumeric
810
InsertNewlineAtEOF: true
11+
LambdaBodyIndentation: OuterScope
12+
MaxEmptyLinesToKeep: 1
913
KeepEmptyLines:
14+
AtStartOfFile: false
15+
AtStartOfBlock: false
1016
AtEndOfFile: false
17+
LineEnding: LF

modules/core/perf/src/perf.cpp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,12 @@ ppc::core::Perf::Perf(const std::shared_ptr<Task>& task_ptr) : task_(task_ptr) {
2020
void ppc::core::Perf::PipelineRun(const PerfAttr& perf_attr) {
2121
perf_results_.type_of_running = PerfResults::TypeOfRunning::kPipeline;
2222

23-
CommonRun(
24-
perf_attr,
25-
[&]() {
26-
task_->Validation();
27-
task_->PreProcessing();
28-
task_->Run();
29-
task_->PostProcessing();
30-
},
31-
perf_results_);
23+
CommonRun(perf_attr, [&]() {
24+
task_->Validation();
25+
task_->PreProcessing();
26+
task_->Run();
27+
task_->PostProcessing();
28+
}, perf_results_);
3229
}
3330

3431
void ppc::core::Perf::TaskRun(const PerfAttr& perf_attr) {

0 commit comments

Comments
 (0)