clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: Ic5fd073faa7391d3f0b37787d6a9c7688c9a3253
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/dbus-sdr/sdrutils.cpp b/dbus-sdr/sdrutils.cpp
index a5a82e9..3e7b966 100644
--- a/dbus-sdr/sdrutils.cpp
+++ b/dbus-sdr/sdrutils.cpp
@@ -61,8 +61,8 @@
static constexpr const int32_t depth = 2;
- auto lbdUpdateSensorTree =
- [&dbus](const char* path, const auto& interfaces) {
+ auto lbdUpdateSensorTree = [&dbus](const char* path,
+ const auto& interfaces) {
auto mapperCall = dbus->new_method_call(
"xyz.openbmc_project.ObjectMapper",
"/xyz/openbmc_project/object_mapper",
@@ -219,7 +219,7 @@
ipmi::sensor::sensors.begin(), ipmi::sensor::sensors.end(),
[&path](const ipmi::sensor::IdInfoMap::value_type& findSensor) {
return findSensor.second.sensorPath == path;
- });
+ });
}
#endif
diff --git a/dbus-sdr/sensorcommands.cpp b/dbus-sdr/sensorcommands.cpp
index 5a62d7b..ad183b7 100644
--- a/dbus-sdr/sensorcommands.cpp
+++ b/dbus-sdr/sensorcommands.cpp
@@ -139,7 +139,7 @@
sdrLastAdd = std::chrono::duration_cast<std::chrono::seconds>(
std::chrono::system_clock::now().time_since_epoch())
.count();
- });
+});
static sdbusplus::bus::match_t sensorRemoved(
*getSdBus(),
@@ -151,7 +151,7 @@
sdrLastRemove = std::chrono::duration_cast<std::chrono::seconds>(
std::chrono::system_clock::now().time_since_epoch())
.count();
- });
+});
// this keeps track of deassertions for sensor event status command. A
// deasertion can only happen if an assertion was seen first.
@@ -199,7 +199,7 @@
}
}
}
- });
+});
namespace sensor
{
diff --git a/dbus-sdr/storagecommands.cpp b/dbus-sdr/storagecommands.cpp
index 1ae0de2..e784f7e 100644
--- a/dbus-sdr/storagecommands.cpp
+++ b/dbus-sdr/storagecommands.cpp
@@ -656,7 +656,7 @@
}
return true;
- });
+ });
if (entity == entities.end())
{