clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: Ib275562735535218d2faf6c724e49f054d0be4a1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/views.cpp b/views.cpp
index 1c36fdb..bf87c95 100644
--- a/views.cpp
+++ b/views.cpp
@@ -114,9 +114,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);
@@ -1146,8 +1146,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;
}
@@ -1170,8 +1170,8 @@
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
{
@@ -1179,8 +1179,8 @@
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;
+ });
}
if (sort_order_ == Descending)