clang-format: copy latest and re-format
clang-format-16 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: I44441096113929ce96eb1439e2932e6ff3c87f27
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/dbus-sdr/sdrutils.cpp b/dbus-sdr/sdrutils.cpp
index e818ef3..399b59a 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",
@@ -102,8 +102,8 @@
static constexpr const std::array vrInterfaces = {
"xyz.openbmc_project.Control.VoltageRegulatorMode"};
- bool sensorRez =
- lbdUpdateSensorTree("/xyz/openbmc_project/sensors", sensorInterfaces);
+ bool sensorRez = lbdUpdateSensorTree("/xyz/openbmc_project/sensors",
+ sensorInterfaces);
#ifdef FEATURE_HYBRID_SENSORS
@@ -218,7 +218,7 @@
return std::find_if(
ipmi::sensor::sensors.begin(), ipmi::sensor::sensors.end(),
[&path](const ipmi::sensor::IdInfoMap::value_type& findSensor) {
- return findSensor.second.sensorPath == path;
+ return findSensor.second.sensorPath == path;
});
}
#endif
@@ -394,8 +394,8 @@
return ipmiDecoratorPaths;
}
- ipmiDecoratorPaths =
- std::unordered_set<std::string>(paths.begin(), paths.end());
+ ipmiDecoratorPaths = std::unordered_set<std::string>(paths.begin(),
+ paths.end());
return ipmiDecoratorPaths;
}