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: I0354bf7192c66505b2173aaece3525940a5caa06
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/item_updater_main.cpp b/item_updater_main.cpp
index 23f71b5..0aad740 100644
--- a/item_updater_main.cpp
+++ b/item_updater_main.cpp
@@ -77,21 +77,20 @@
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]() {
+ ->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);
@@ -99,7 +98,7 @@
{
subcommandContext.push_back(subcommand);
}
- }));
+ }));
CLI11_PARSE(app, argc, argv);