clang-tidy: Add performance-inefficient-vector-operation check

https://clang.llvm.org/extra/clang-tidy/checks/performance/inefficient-vector-operation.html
This commit is contained in:
Hennadii Stepanov
2023-03-26 20:17:55 +01:00
parent 516b75f66e
commit 7e975e6cf8
22 changed files with 27 additions and 4 deletions

View File

@@ -174,6 +174,7 @@ BOOST_AUTO_TEST_CASE(processnewblock_signals_ordering)
// this will create parallelism and randomness inside validation - the ValidationInterface
// will subscribe to events generated during block validation and assert on ordering invariance
std::vector<std::thread> threads;
threads.reserve(10);
for (int i = 0; i < 10; i++) {
threads.emplace_back([&]() {
bool ignored;