clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: I2f0b9d0fb6e01ed36a2f34c750ba52de3b6d15d1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/redfish-core/lib/power.hpp b/redfish-core/lib/power.hpp
index 68acd1a..50e466c 100644
--- a/redfish-core/lib/power.hpp
+++ b/redfish-core/lib/power.hpp
@@ -93,9 +93,9 @@
auto& item = powerControlCollections[0];
std::optional<uint32_t> value;
- if (!json_util::readJsonObject( //
+ if (!json_util::readJsonObject( //
item, sensorsAsyncResp->asyncResp->res, //
- "PowerLimit/LimitInWatts", value //
+ "PowerLimit/LimitInWatts", value //
))
{
return;
@@ -263,10 +263,10 @@
) { afterPowerCapSettingGet(sensorAsyncResp, ec, properties); });
}
-inline void
- handleChassisPowerGet(App& app, const crow::Request& req,
- const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
- const std::string& chassisName)
+inline void handleChassisPowerGet(
+ App& app, const crow::Request& req,
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
+ const std::string& chassisName)
{
if (!redfish::setUpRedfishRoute(app, req, asyncResp))
{
@@ -295,10 +295,10 @@
std::bind_front(afterGetChassis, sensorAsyncResp));
}
-inline void
- handleChassisPowerPatch(App& app, const crow::Request& req,
- const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
- const std::string& chassisName)
+inline void handleChassisPowerPatch(
+ App& app, const crow::Request& req,
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
+ const std::string& chassisName)
{
if (!redfish::setUpRedfishRoute(app, req, asyncResp))
{
@@ -312,10 +312,10 @@
std::optional<std::vector<nlohmann::json::object_t>> voltageCollections;
std::optional<std::vector<nlohmann::json::object_t>> powerCtlCollections;
- if (!json_util::readJsonPatch( //
+ if (!json_util::readJsonPatch( //
req, sensorAsyncResp->asyncResp->res, //
- "PowerControl", powerCtlCollections, //
- "Voltages", voltageCollections //
+ "PowerControl", powerCtlCollections, //
+ "Voltages", voltageCollections //
))
{
return;