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: I73acd9daf41b52bcc3f6af9a1c38c5f162ae76b2
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/PSUSensorMain.cpp b/src/PSUSensorMain.cpp
index 6ab8955..4136ceb 100644
--- a/src/PSUSensorMain.cpp
+++ b/src/PSUSensorMain.cpp
@@ -1054,9 +1054,9 @@
auto getter = std::make_shared<GetSensorConfiguration>(
dbusConnection, [&io, &objectServer, &dbusConnection, sensorsChanged,
activateOnly](const ManagedObjectType& sensorConfigs) {
- createSensorsCallback(io, objectServer, dbusConnection,
- sensorConfigs, sensorsChanged, activateOnly);
- });
+ createSensorsCallback(io, objectServer, dbusConnection, sensorConfigs,
+ sensorsChanged, activateOnly);
+ });
std::vector<std::string> types(sensorTypes.size());
for (const auto& [type, dt] : sensorTypes)
{
@@ -1231,8 +1231,8 @@
propertyInitialize();
- auto powerCallBack =
- [&io, &objectServer, &systemBus](PowerState type, bool state) {
+ auto powerCallBack = [&io, &objectServer, &systemBus](PowerState type,
+ bool state) {
powerStateChanged(type, state, sensors, io, objectServer, systemBus);
};