clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I2f9540cf0d545a2da4d6289fc87b754f684bc9a7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/redfish-core/lib/managers.hpp b/redfish-core/lib/managers.hpp
index 32385de..314099b 100644
--- a/redfish-core/lib/managers.hpp
+++ b/redfish-core/lib/managers.hpp
@@ -75,7 +75,7 @@
}
messages::success(asyncResp->res);
- });
+ });
}
inline void
@@ -102,7 +102,7 @@
}
messages::success(asyncResp->res);
- });
+ });
}
/**
@@ -153,7 +153,7 @@
"ResetType");
return;
- });
+ });
}
/**
@@ -219,11 +219,11 @@
// Factory Reset doesn't actually happen until a reboot
// Can't erase what the BMC is running on
doBMCGracefulRestart(asyncResp);
- },
+ },
"xyz.openbmc_project.Software.BMC.Updater",
"/xyz/openbmc_project/software",
"xyz.openbmc_project.Common.FactoryReset", "Reset");
- });
+ });
}
/**
@@ -266,7 +266,7 @@
parameters.emplace_back(std::move(parameter));
asyncResp->res.jsonValue["Parameters"] = std::move(parameters);
- });
+ });
}
static constexpr const char* objectManagerIface =
@@ -686,7 +686,7 @@
}
}
}
- });
+ });
}
enum class CreatePIDRet
@@ -806,7 +806,7 @@
return;
}
messages::success(response->res);
- },
+ },
"xyz.openbmc_project.EntityManager", path, iface, "Delete");
return CreatePIDRet::del;
}
@@ -1171,7 +1171,7 @@
return;
}
self->complete.subtree = subtreeLocal;
- });
+ });
// at the same time get the selected profile
constexpr std::array<std::string_view, 1> thermalModeIfaces = {
@@ -1231,8 +1231,8 @@
}
self->complete.currentProfile = *current;
self->complete.supportedProfiles = *supported;
- });
});
+ });
}
static void
@@ -1381,7 +1381,7 @@
}
}
self->managedObj = mObj;
- });
+ });
// at the same time get the profile information
constexpr std::array<std::string_view, 1> thermalModeIfaces = {
@@ -1439,8 +1439,8 @@
self->supportedProfiles = *supported;
self->profileConnection = owner;
self->profilePath = path;
- });
});
+ });
}
void pidSetDone()
{
@@ -1468,7 +1468,7 @@
BMCWEB_LOG_ERROR("Error patching profile{}", ec);
messages::internalError(response->res);
}
- });
+ });
}
for (auto& containerPair : configuration)
@@ -1492,9 +1492,9 @@
auto pathItr = std::ranges::find_if(
managedObj, [&dbusObjName](const auto& obj) {
- return boost::algorithm::ends_with(obj.first.str,
- "/" + dbusObjName);
- });
+ return boost::algorithm::ends_with(obj.first.str,
+ "/" + dbusObjName);
+ });
dbus::utility::DBusPropertiesMap output;
output.reserve(16); // The pid interface length
@@ -1606,7 +1606,7 @@
return;
}
messages::success(response->res);
- });
+ });
}
}
else
@@ -1647,7 +1647,7 @@
return;
}
messages::success(response->res);
- },
+ },
"xyz.openbmc_project.EntityManager", chassis,
"xyz.openbmc_project.AddObject", "AddObject", output);
}
@@ -1708,7 +1708,7 @@
asyncResp->res.jsonValue["Location"]["PartLocation"]["ServiceLabel"] =
property;
- });
+ });
}
// avoid name collision systems.hpp
inline void
@@ -1735,7 +1735,7 @@
// Convert to ISO 8601 standard
asyncResp->res.jsonValue["LastResetTime"] =
redfish::time_utils::getDateTimeUint(lastResetTimeStamp);
- });
+ });
}
/**
@@ -1843,8 +1843,8 @@
return;
}
doBMCGracefulRestart(asyncResp);
- });
});
+ });
}
inline void setDateTime(std::shared_ptr<bmcweb::AsyncResp> asyncResp,
@@ -1875,7 +1875,7 @@
return;
}
asyncResp->res.jsonValue["DateTime"] = datetime;
- });
+ });
}
inline void
@@ -1898,7 +1898,7 @@
}
asyncResp->res.jsonValue["Status"]["Health"] = "OK";
asyncResp->res.jsonValue["Status"]["State"] = "Enabled";
- });
+ });
}
inline void requestRoutesManager(App& app)
@@ -2064,7 +2064,7 @@
return;
}
checkForQuiesced(asyncResp);
- });
+ });
constexpr std::array<std::string_view, 1> interfaces = {
"xyz.openbmc_project.Inventory.Item.Bmc"};
@@ -2165,7 +2165,7 @@
asyncResp->res.jsonValue["SparePartNumber"] =
*sparePartNumber;
}
- });
+ });
}
else if (interfaceName ==
"xyz.openbmc_project.Inventory.Decorator.LocationCode")
@@ -2173,8 +2173,8 @@
getLocation(asyncResp, connectionName, path);
}
}
- });
});
+ });
BMCWEB_ROUTE(app, "/redfish/v1/Managers/bmc/")
.privileges(redfish::privileges::patchManager)
@@ -2251,7 +2251,7 @@
{
setDateTime(asyncResp, std::move(*datetime));
}
- });
+ });
}
inline void requestRoutesManagerCollection(App& app)
@@ -2276,6 +2276,6 @@
nlohmann::json& bmc = members.emplace_back();
bmc["@odata.id"] = "/redfish/v1/Managers/bmc";
asyncResp->res.jsonValue["Members"] = std::move(members);
- });
+ });
}
} // namespace redfish