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: I7b90380845efee6bf6a1fe342a793d71aa9ff181
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/phosphor-regulators/test/device_tests.cpp b/phosphor-regulators/test/device_tests.cpp
index 5aaa2fe..021a02a 100644
--- a/phosphor-regulators/test/device_tests.cpp
+++ b/phosphor-regulators/test/device_tests.cpp
@@ -74,8 +74,8 @@
std::vector<std::unique_ptr<Rule>> rules{};
std::vector<std::unique_ptr<Chassis>> chassisVec{};
chassisVec.emplace_back(std::move(chassis));
- this->system = std::make_unique<System>(std::move(rules),
- std::move(chassisVec));
+ this->system =
+ std::make_unique<System>(std::move(rules), std::move(chassisVec));
}
protected:
@@ -455,8 +455,8 @@
EXPECT_CALL(*action, execute).Times(0);
std::vector<std::unique_ptr<Action>> actions{};
actions.emplace_back(std::move(action));
- configuration = std::make_unique<Configuration>(volts,
- std::move(actions));
+ configuration =
+ std::make_unique<Configuration>(volts, std::move(actions));
}
// Create Device
@@ -516,8 +516,8 @@
std::make_unique<Configuration>(volts, std::move(actions));
// Create Rail
- auto rail = std::make_unique<Rail>("vdd0",
- std::move(configuration));
+ auto rail =
+ std::make_unique<Rail>("vdd0", std::move(configuration));
rails.emplace_back(std::move(rail));
}
@@ -533,8 +533,8 @@
std::make_unique<Configuration>(volts, std::move(actions));
// Create Rail
- auto rail = std::make_unique<Rail>("vio0",
- std::move(configuration));
+ auto rail =
+ std::make_unique<Rail>("vio0", std::move(configuration));
rails.emplace_back(std::move(rail));
}