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: I7c1a903d0b8fe5df2da9a73bda2d84113e9d854d
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/main.cpp b/main.cpp
index b34e52c..0e36533 100644
--- a/main.cpp
+++ b/main.cpp
@@ -48,15 +48,16 @@
"Registering OEM:[%#08X], Cmd:[%#04X] for Blob Commands\n",
oem::obmcOemNumber, oem::Cmd::blobTransferCmd);
- ipmi::registerOemHandler(ipmi::prioOemBase, oem::obmcOemNumber,
- oem::Cmd::blobTransferCmd, ::ipmi::Privilege::User,
- [](ipmi::Context::ptr ctx, uint8_t cmd,
- const std::vector<uint8_t>& data) {
- // Get current IPMI channel and get the max transfer size
- // (assuming that it does not change).
- return handleBlobCommand(cmd, data,
- ipmi::getChannelMaxTransferSize(ctx->channel));
- });
+ ipmi::registerOemHandler(
+ ipmi::prioOemBase, oem::obmcOemNumber, oem::Cmd::blobTransferCmd,
+ ::ipmi::Privilege::User,
+ [](ipmi::Context::ptr ctx, uint8_t cmd,
+ const std::vector<uint8_t>& data) {
+ // Get current IPMI channel and get the max transfer size
+ // (assuming that it does not change).
+ return handleBlobCommand(
+ cmd, data, ipmi::getChannelMaxTransferSize(ctx->channel));
+ });
/* Install handlers. */
try