Fix tidy errors

This commit is contained in:
Konstantin Bogdanov 2024-10-16 01:34:37 +02:00
parent 60d49d769c
commit 43cf88a86e
Signed by: thevar1able
GPG Key ID: DB399448D9FE52F1
3 changed files with 3 additions and 2 deletions

View File

@ -633,7 +633,7 @@ private:
static const Interval & getInterval(const IntervalWithValue & interval_with_value)
{
if constexpr (is_empty_value)
return interval_with_value;
return interval_with_value; /// NOLINT(bugprone-return-const-ref-from-parameter)
else
return interval_with_value.first;
}

View File

@ -54,6 +54,7 @@ int main(int argc, char ** argv)
Cache cache(cache_size);
std::vector<std::thread> threads;
threads.reserve(num_threads);
for (size_t i = 0; i < num_threads; ++i)
{
threads.emplace_back([&]

View File

@ -70,7 +70,7 @@ uint64_t test(uint8_t * dst, uint8_t * src, size_t size, size_t iterations, size
iteration % 2 ? &dst[begin] : &src[begin],
end - begin,
[rng = RNG(), &generator]() mutable { return generator(rng); },
std::forward<MemcpyImpl>(impl));
std::forward<MemcpyImpl>(impl)); /// NOLINT(bugprone-use-after-move)
}
});
}