chore: Use clang-tidy v22 new features (#7427)

This commit is contained in:
Ayaz Salikhov
2026-06-24 18:23:29 +01:00
committed by GitHub
parent 4fec58251b
commit eef8f4a4ff
90 changed files with 315 additions and 294 deletions

View File

@@ -69,9 +69,7 @@ Results::add(SuiteResults const& r)
top.begin(),
top.end(),
elapsed,
[](run_time const& t1, typename clock_type::duration const& t2) {
return t1.second > t2;
});
[](run_time const& t1, clock_type::duration const& t2) { return t1.second > t2; });
if (iter != top.end())
{

View File

@@ -42,7 +42,7 @@ struct SuiteResults
std::size_t cases = 0;
std::size_t total = 0;
std::size_t failed = 0;
typename clock_type::time_point start = clock_type::now();
clock_type::time_point start = clock_type::now();
explicit SuiteResults(std::string name = "") : name(std::move(name))
{
@@ -57,7 +57,7 @@ struct Results
using static_string = boost::beast::static_string<256>;
// results may be stored in shared memory. Use `static_string` to ensure
// pointers from different memory spaces do not co-mingle
using run_time = std::pair<static_string, typename clock_type::duration>;
using run_time = std::pair<static_string, clock_type::duration>;
static constexpr auto kMaxTop = 10;
@@ -66,7 +66,7 @@ struct Results
std::size_t total = 0;
std::size_t failed = 0;
boost::container::static_vector<run_time, kMaxTop> top;
typename clock_type::time_point start = clock_type::now();
clock_type::time_point start = clock_type::now();
void
add(SuiteResults const& r);