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/certificate_service.hpp b/redfish-core/lib/certificate_service.hpp
index fdc283b..9dd6874 100644
--- a/redfish-core/lib/certificate_service.hpp
+++ b/redfish-core/lib/certificate_service.hpp
@@ -101,9 +101,9 @@
std::string certificate;
std::optional<std::string> certificateType = "PEM";
- if (!json_util::readJsonPatch( //
- req, asyncResp->res, //
- "CertificateString", certificate, //
+ if (!json_util::readJsonPatch( //
+ req, asyncResp->res, //
+ "CertificateString", certificate, //
"CertificateType", certificateType //
))
{
@@ -417,10 +417,10 @@
});
}
-inline void
- deleteCertificate(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
- const std::string& service,
- const sdbusplus::message::object_path& objectPath)
+inline void deleteCertificate(
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
+ const std::string& service,
+ const sdbusplus::message::object_path& objectPath)
{
crow::connections::systemBus->async_method_call(
[asyncResp,
@@ -535,9 +535,9 @@
std::string certURI;
std::optional<std::string> certificateType = "PEM";
- if (!json_util::readJsonAction( //
- req, asyncResp->res, //
- "CertificateString", certificate, //
+ if (!json_util::readJsonAction( //
+ req, asyncResp->res, //
+ "CertificateString", certificate, //
"CertificateType", certificateType, //
"CertificateUri/@odata.id", certURI //
))
@@ -677,9 +677,9 @@
service, csrObjPath, "xyz.openbmc_project.Certs.CSR", "CSR");
}
-inline void
- handleGenerateCSRAction(App& app, const crow::Request& req,
- const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
+inline void handleGenerateCSRAction(
+ App& app, const crow::Request& req,
+ const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
{
if (!redfish::setUpRedfishRoute(app, req, asyncResp))
{
@@ -711,27 +711,27 @@
std::vector<std::string>();
std::optional<std::string> optSurname = "";
std::optional<std::string> optUnstructuredName = "";
- if (!json_util::readJsonAction( //
- req, asyncResp->res, //
- "AlternativeNames", optAlternativeNames, //
+ if (!json_util::readJsonAction( //
+ req, asyncResp->res, //
+ "AlternativeNames", optAlternativeNames, //
"CertificateCollection/@odata.id", certURI, //
- "ChallengePassword", optChallengePassword, //
- "City", city, //
- "CommonName", commonName, //
- "ContactPerson", optContactPerson, //
- "Country", country, //
- "Email", optEmail, //
- "GivenName", optGivenName, //
- "Initials", optInitials, //
- "KeyBitLength", optKeyBitLength, //
- "KeyCurveId", optKeyCurveId, //
- "KeyPairAlgorithm", optKeyPairAlgorithm, //
- "KeyUsage", optKeyUsage, //
- "Organization", organization, //
- "OrganizationalUnit", organizationalUnit, //
- "State", state, //
- "Surname", optSurname, //
- "UnstructuredName", optUnstructuredName //
+ "ChallengePassword", optChallengePassword, //
+ "City", city, //
+ "CommonName", commonName, //
+ "ContactPerson", optContactPerson, //
+ "Country", country, //
+ "Email", optEmail, //
+ "GivenName", optGivenName, //
+ "Initials", optInitials, //
+ "KeyBitLength", optKeyBitLength, //
+ "KeyCurveId", optKeyCurveId, //
+ "KeyPairAlgorithm", optKeyPairAlgorithm, //
+ "KeyUsage", optKeyUsage, //
+ "Organization", organization, //
+ "OrganizationalUnit", organizationalUnit, //
+ "State", state, //
+ "Surname", optSurname, //
+ "UnstructuredName", optUnstructuredName //
))
{
return;