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: Ib7af6345a7b9e858700bd81645fe87d9d7e9d0fb
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/PSUEvent.cpp b/src/PSUEvent.cpp
index 8a83f37..438faa2 100644
--- a/src/PSUEvent.cpp
+++ b/src/PSUEvent.cpp
@@ -45,8 +45,7 @@
boost::asio::io_context& io, const std::string& psuName,
const PowerState& powerState, EventPathList& eventPathList,
GroupEventPathList& groupEventPathList, const std::string& combineEventName,
- double pollRate) :
- objServer(objectServer)
+ double pollRate) : objServer(objectServer)
{
std::string psuNameEscaped = sensor_paths::escapePathForDbus(psuName);
eventInterface = objServer.add_interface(
@@ -146,10 +145,9 @@
std::shared_ptr<std::set<std::string>> asserts,
std::shared_ptr<std::set<std::string>> combineEvent,
std::shared_ptr<bool> state, const std::string& psuName, double pollRate) :
- eventInterface(std::move(eventInterface)),
- asserts(std::move(asserts)), combineEvent(std::move(combineEvent)),
- assertState(std::move(state)), path(path), eventName(eventName),
- readState(powerState), waitTimer(io),
+ eventInterface(std::move(eventInterface)), asserts(std::move(asserts)),
+ combineEvent(std::move(combineEvent)), assertState(std::move(state)),
+ path(path), eventName(eventName), readState(powerState), waitTimer(io),
inputDev(io, path, boost::asio::random_access_file::read_only),
psuName(psuName), groupEventName(groupEventName), systemBus(conn)
@@ -210,12 +208,12 @@
0, boost::asio::buffer(buffer->data(), buffer->size() - 1),
[weakRef, buffer{buffer}](const boost::system::error_code& ec,
std::size_t bytesTransferred) {
- std::shared_ptr<PSUSubEvent> self = weakRef.lock();
- if (self)
- {
- self->handleResponse(ec, bytesTransferred);
- }
- });
+ std::shared_ptr<PSUSubEvent> self = weakRef.lock();
+ if (self)
+ {
+ self->handleResponse(ec, bytesTransferred);
+ }
+ });
}
void PSUSubEvent::restartRead()