clang-format: update with latest
Pick up the latest .clang-format from the docs repository.
Change-Id: I205c7f9abd502a02a480b489446f3db37f303e05
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/views.cpp b/views.cpp
index b8de9ae..bb0ab84 100644
--- a/views.cpp
+++ b/views.cpp
@@ -112,9 +112,9 @@
snap = 1000;
}
const float eps = snap / 100.0f;
- int label_ymax =
- (static_cast<int>((ymax - eps) / snap) + 1) * snap; // round up
- int label_ymin = static_cast<int>(ymin / snap) * snap; // round down
+ int label_ymax = (static_cast<int>((ymax - eps) / snap) + 1) *
+ snap; // round up
+ int label_ymin = static_cast<int>(ymin / snap) * snap; // round down
float y_per_row = (label_ymax - label_ymin) * 1.0f / (h - 1);
int actual_ymax = label_ymax + static_cast<int>(y_per_row / 2);
int actual_ymin = label_ymin - static_cast<int>(y_per_row / 2);
@@ -1072,8 +1072,8 @@
}
else
{
- float avg_latency_usec =
- m.total_latency_usec / m.num_method_calls;
+ float avg_latency_usec = m.total_latency_usec /
+ m.num_method_calls;
row.push_back(FloatToString(avg_latency_usec));
sof.f = avg_latency_usec;
}
@@ -1096,7 +1096,7 @@
stats_snapshot_staged.begin(), stats_snapshot_staged.end(),
[](const std::pair<StringOrFloat, std::vector<std::string>>& a,
const std::pair<StringOrFloat, std::vector<std::string>>& b) {
- return a.first.f < b.first.f;
+ return a.first.f < b.first.f;
});
}
else
@@ -1105,7 +1105,7 @@
stats_snapshot_staged.begin(), stats_snapshot_staged.end(),
[](const std::pair<StringOrFloat, std::vector<std::string>>& a,
const std::pair<StringOrFloat, std::vector<std::string>>& b) {
- return a.first.s < b.first.s;
+ return a.first.s < b.first.s;
});
}