chore: Add clang-tidy 19 checks (#1774)

Fix #1664
This commit is contained in:
Alex Kremer
2024-12-09 16:27:53 +00:00
committed by GitHub
parent a7074dbf0f
commit 475e309f25
87 changed files with 3135 additions and 2711 deletions

View File

@@ -41,17 +41,17 @@ bool
isAddress(std::string_view hostname)
{
boost::system::error_code ec;
asio::ip::make_address(hostname.data(), ec);
asio::ip::make_address(hostname, ec);
if (ec == boost::system::errc::success) {
return true;
}
asio::ip::make_network_v4(hostname.data(), ec);
asio::ip::make_network_v4(hostname, ec);
if (ec == boost::system::errc::success) {
return true;
}
asio::ip::make_network_v6(hostname.data(), ec);
asio::ip::make_network_v6(hostname, ec);
return ec == boost::system::errc::success;
}