Upgrade clang-format to version 15 (#6859)
This commit is contained in:
@@ -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!";
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user