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: Iceec1dc95b6c908ec6c21fb40093de9dd18bf11a
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/include/async_resolve.hpp b/include/async_resolve.hpp
index dbc0cfc..ae73dd3 100644
--- a/include/async_resolve.hpp
+++ b/include/async_resolve.hpp
@@ -86,35 +86,35 @@
const std::vector<
std::tuple<int32_t, int32_t, std::vector<uint8_t>>>& resp,
const std::string& hostName, const uint64_t flagNum) {
- results_type endpointList;
- if (ec)
- {
- BMCWEB_LOG_ERROR("Resolve failed: {}", ec.message());
- handler(ec, endpointList);
- return;
- }
- BMCWEB_LOG_DEBUG("ResolveHostname returned: {}:{}", hostName,
- flagNum);
- // Extract the IP address from the response
- for (const std::tuple<int32_t, int32_t, std::vector<uint8_t>>&
- resolveList : resp)
- {
- boost::asio::ip::tcp::endpoint endpoint;
- endpoint.port(portNum);
- if (!endpointFromResolveTuple(std::get<2>(resolveList),
- endpoint))
+ results_type endpointList;
+ if (ec)
{
- boost::system::error_code ecErr = make_error_code(
- boost::system::errc::address_not_available);
- handler(ecErr, endpointList);
+ BMCWEB_LOG_ERROR("Resolve failed: {}", ec.message());
+ handler(ec, endpointList);
+ return;
}
- BMCWEB_LOG_DEBUG("resolved endpoint is : {}",
- endpoint.address().to_string());
- endpointList.push_back(endpoint);
- }
- // All the resolved data is filled in the endpointList
- handler(ec, endpointList);
- },
+ BMCWEB_LOG_DEBUG("ResolveHostname returned: {}:{}", hostName,
+ flagNum);
+ // Extract the IP address from the response
+ for (const std::tuple<int32_t, int32_t, std::vector<uint8_t>>&
+ resolveList : resp)
+ {
+ boost::asio::ip::tcp::endpoint endpoint;
+ endpoint.port(portNum);
+ if (!endpointFromResolveTuple(std::get<2>(resolveList),
+ endpoint))
+ {
+ boost::system::error_code ecErr = make_error_code(
+ boost::system::errc::address_not_available);
+ handler(ecErr, endpointList);
+ }
+ BMCWEB_LOG_DEBUG("resolved endpoint is : {}",
+ endpoint.address().to_string());
+ endpointList.push_back(endpoint);
+ }
+ // All the resolved data is filled in the endpointList
+ handler(ec, endpointList);
+ },
"org.freedesktop.resolve1", "/org/freedesktop/resolve1",
"org.freedesktop.resolve1.Manager", "ResolveHostname", 0, host,
AF_UNSPEC, flag);