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: If66f68c96df4baf8dc07abf8729a3cb7657e932d
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/power-supply/power_supply.cpp b/power-supply/power_supply.cpp
index ce6a43a..1dc383d 100644
--- a/power-supply/power_supply.cpp
+++ b/power-supply/power_supply.cpp
@@ -573,8 +573,8 @@
return;
}
- auto logEntryService =
- util::getService(logEntries[0], LOGGING_IFACE, bus);
+ auto logEntryService = util::getService(logEntries[0], LOGGING_IFACE,
+ bus);
if (logEntryService.empty())
{
return;
@@ -654,8 +654,8 @@
try
{
- auto service =
- util::getService(INVENTORY_OBJ_PATH, INVENTORY_MGR_IFACE, bus);
+ auto service = util::getService(INVENTORY_OBJ_PATH, INVENTORY_MGR_IFACE,
+ bus);
if (service.empty())
{
@@ -733,9 +733,9 @@
}
// Read just the most recent average/max record
- auto data =
- pmbusIntf.readBinary(INPUT_HISTORY, pmbus::Type::HwmonDeviceDebug,
- history::RecordManager::RAW_RECORD_SIZE);
+ auto data = pmbusIntf.readBinary(INPUT_HISTORY,
+ pmbus::Type::HwmonDeviceDebug,
+ history::RecordManager::RAW_RECORD_SIZE);
// Update D-Bus only if something changed (a new record ID, or cleared out)
auto changed = recordManager->add(data);