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: Id6c141dd4eba2423f476499b999aec9cb42f6192
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/item_updater_main.cpp b/item_updater_main.cpp
index fe39586..efada13 100644
--- a/item_updater_main.cpp
+++ b/item_updater_main.cpp
@@ -87,28 +87,30 @@
app.add_subcommand("process-host-firmware",
"Point the host firmware at its data.")
->callback([&bus, &loop, &subcommandContext, extensionMap]() {
- auto hostFirmwareDirectory = "/media/hostfw/running"s;
- auto logCallback = [](const auto& path, auto& ec) {
- std::cerr << path << ": " << ec.message() << "\n";
- };
- subcommandContext.push_back(
- functions::process_hostfirmware::processHostFirmware(
- bus, extensionMap, std::move(hostFirmwareDirectory),
- std::move(logCallback), loop));
- }));
+ auto hostFirmwareDirectory = "/media/hostfw/running"s;
+ auto logCallback = [](const auto& path, auto& ec) {
+ std::cerr << path << ": " << ec.message() << "\n";
+ };
+ subcommandContext.push_back(
+ functions::process_hostfirmware::processHostFirmware(
+ bus, extensionMap, std::move(hostFirmwareDirectory),
+ std::move(logCallback), loop));
+ }));
static_cast<void>(
app.add_subcommand("update-bios-attr-table",
"Update the bios attribute table with the host "
"firmware data details.")
->callback([&bus, &loop, &subcommandContext, extensionMap]() {
- auto elementsJsonFilePath = "/usr/share/hostfw/elements.json"s;
- auto subcommands = functions::process_hostfirmware::updateBiosAttrTable(
- bus, extensionMap, std::move(elementsJsonFilePath), loop);
- for (const auto& subcommand : subcommands)
- {
- subcommandContext.push_back(subcommand);
- }
- }));
+ auto elementsJsonFilePath = "/usr/share/hostfw/elements.json"s;
+ auto subcommands =
+ functions::process_hostfirmware::updateBiosAttrTable(
+ bus, extensionMap, std::move(elementsJsonFilePath),
+ loop);
+ for (const auto& subcommand : subcommands)
+ {
+ subcommandContext.push_back(subcommand);
+ }
+ }));
CLI11_PARSE(app, argc, argv);