Upgrade clang-format to version 15 (#6859)

This commit is contained in:
Dennis Luxen
2024-05-06 09:14:46 +02:00
committed by GitHub
parent b503e96a98
commit 7f9d591ab7
156 changed files with 2357 additions and 1894 deletions
+4 -2
View File
@@ -53,7 +53,8 @@ void validate(boost::any &v, const std::vector<std::string> &values, MaxCellSize
std::transform(std::sregex_token_iterator(s.begin(), s.end(), re, -1),
std::sregex_token_iterator(),
std::back_inserter(output),
[](const auto &x) {
[](const auto &x)
{
try
{
return boost::lexical_cast<std::size_t>(x);
@@ -215,7 +216,8 @@ try
return EXIT_FAILURE;
}
auto check_file = [](const boost::filesystem::path &path) {
auto check_file = [](const boost::filesystem::path &path)
{
if (!boost::filesystem::is_regular_file(path))
{
util::Log(logERROR) << "Input file " << path << " not found!";
+6 -4
View File
@@ -343,10 +343,12 @@ try
}
else
{
std::packaged_task<int()> server_task([&] {
routing_server->Run();
return 0;
});
std::packaged_task<int()> server_task(
[&]
{
routing_server->Run();
return 0;
});
auto future = server_task.get_future();
std::thread server_thread(std::move(server_task));