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: Iee5e9ffc9cdaefb7db5577a9c422c1e9646253f2
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/power-supply/main.cpp b/power-supply/main.cpp
index c0efdcc..0a6f965 100644
--- a/power-supply/main.cpp
+++ b/power-supply/main.cpp
@@ -121,16 +121,16 @@
}
std::string name{"ps" + instnum + "_input_power"};
- std::string basePath = std::string{INPUT_HISTORY_SENSOR_ROOT} + '/' +
- name;
+ std::string basePath =
+ std::string{INPUT_HISTORY_SENSOR_ROOT} + '/' + name;
psuDevice->enableHistory(basePath, numRecords, syncGPIOPath, gpioNum);
// Systemd object manager
sdbusplus::server::manager_t objManager{bus, basePath.c_str()};
- std::string busName = std::string{INPUT_HISTORY_BUSNAME_ROOT} + '.' +
- name;
+ std::string busName =
+ std::string{INPUT_HISTORY_BUSNAME_ROOT} + '.' + name;
bus.request_name(busName.c_str());
}