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: Ic16d6d63213bbdd91fcb8f5aa986b66865efda2f
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/bmc_state_manager.hpp b/bmc_state_manager.hpp
index d0b37a2..50d25f1 100644
--- a/bmc_state_manager.hpp
+++ b/bmc_state_manager.hpp
@@ -51,22 +51,22 @@
"/org/freedesktop/systemd1/unit/time_2dsync_2etarget",
"org.freedesktop.systemd1.Unit"),
[this](sdbusplus::message_t& m) {
- std::string interface;
- std::unordered_map<std::string, std::variant<std::string>>
- propertyChanged;
- m.read(interface, propertyChanged);
+ std::string interface;
+ std::unordered_map<std::string, std::variant<std::string>>
+ propertyChanged;
+ m.read(interface, propertyChanged);
- for (const auto& [key, value] : propertyChanged)
- {
- if (key == "ActiveState" &&
- std::holds_alternative<std::string>(value) &&
- std::get<std::string>(value) == "active")
- {
- updateLastRebootTime();
- timeSyncSignal.reset();
- }
- }
- }))
+ for (const auto& [key, value] : propertyChanged)
+ {
+ if (key == "ActiveState" &&
+ std::holds_alternative<std::string>(value) &&
+ std::get<std::string>(value) == "active")
+ {
+ updateLastRebootTime();
+ timeSyncSignal.reset();
+ }
+ }
+ }))
{
utils::subscribeToSystemdSignals(bus);
discoverInitialState();