mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fix tidy errors
This commit is contained in:
parent
60d49d769c
commit
43cf88a86e
@ -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;
|
||||
}
|
||||
|
@ -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([&]
|
||||
|
@ -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)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user