From fab0e834b8cf906c286ebbeed86eca8d65854f75 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Mon, 26 Aug 2024 17:27:54 +0200 Subject: [PATCH] bench: [refactor] iwyu --- src/bench/addrman.cpp | 6 +++++ src/bench/base58.cpp | 5 +++-- src/bench/bech32.cpp | 4 +--- src/bench/bench.cpp | 7 +++++- src/bench/bench.h | 5 +++-- src/bench/bench_bitcoin.cpp | 7 +++--- src/bench/bip324_ecdh.cpp | 2 +- src/bench/block_assemble.cpp | 12 ++++++---- src/bench/ccoins_caching.cpp | 5 +++++ src/bench/chacha20.cpp | 5 +++++ src/bench/checkblock.cpp | 11 +++++++++- src/bench/checkblockindex.cpp | 2 ++ src/bench/checkqueue.cpp | 4 +++- src/bench/cluster_linearize.cpp | 8 +++++-- src/bench/coin_selection.cpp | 15 ++++++++++++- src/bench/crypto_hash.cpp | 5 ++++- src/bench/data.cpp | 2 ++ src/bench/descriptors.cpp | 7 +++++- src/bench/disconnected_transactions.cpp | 11 +++++++++- src/bench/duplicate_inputs.cpp | 15 ++++++++++++- src/bench/ellswift.cpp | 7 +++++- src/bench/gcs_filter.cpp | 5 +++++ src/bench/hashpadding.cpp | 2 +- src/bench/index_blockfilter.cpp | 22 +++++++++++++++---- src/bench/load_external.cpp | 15 +++++++++++-- src/bench/lockedpool.cpp | 3 ++- src/bench/logging.cpp | 4 +++- src/bench/mempool_eviction.cpp | 11 +++++++++- src/bench/mempool_stress.cpp | 11 ++++++++-- src/bench/merkle_root.cpp | 3 ++- src/bench/peer_eviction.cpp | 5 ++--- src/bench/poly1305.cpp | 5 ++++- src/bench/pool.cpp | 4 ++++ src/bench/prevector.cpp | 8 ++++--- src/bench/random.cpp | 2 ++ src/bench/readblock.cpp | 13 ++++++++--- src/bench/rollingbloom.cpp | 2 ++ src/bench/rpc_blockchain.cpp | 14 +++++++++--- src/bench/rpc_mempool.cpp | 11 +++++++--- src/bench/sign_transaction.cpp | 10 +++++++-- src/bench/strencodings.cpp | 3 +++ src/bench/verify_script.cpp | 11 ++++++++-- src/bench/wallet_balance.cpp | 16 ++++++++++---- src/bench/wallet_create.cpp | 17 ++++++++++++--- src/bench/wallet_create_tx.cpp | 29 +++++++++++++++++++++++-- src/bench/wallet_ismine.cpp | 19 +++++++++++----- src/bench/wallet_loading.cpp | 24 +++++++++++--------- src/bench/xor.cpp | 2 +- 48 files changed, 332 insertions(+), 84 deletions(-) diff --git a/src/bench/addrman.cpp b/src/bench/addrman.cpp index f044feebba..c0ef7b2279 100644 --- a/src/bench/addrman.cpp +++ b/src/bench/addrman.cpp @@ -4,12 +4,18 @@ #include #include +#include +#include #include #include +#include #include +#include +#include #include #include +#include #include #include diff --git a/src/bench/base58.cpp b/src/bench/base58.cpp index 78748bc5bd..f078c33964 100644 --- a/src/bench/base58.cpp +++ b/src/bench/base58.cpp @@ -2,11 +2,12 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include - #include +#include +#include #include +#include #include diff --git a/src/bench/bech32.cpp b/src/bench/bech32.cpp index 9922653766..afb9ce8999 100644 --- a/src/bench/bech32.cpp +++ b/src/bench/bech32.cpp @@ -2,12 +2,10 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include - #include +#include #include -#include #include diff --git a/src/bench/bench.cpp b/src/bench/bench.cpp index 733f8085ca..a2dbb11888 100644 --- a/src/bench/bench.cpp +++ b/src/bench/bench.cpp @@ -4,16 +4,21 @@ #include -#include +#include // IWYU pragma: keep +#include #include #include #include +#include #include #include #include #include +#include #include +#include +#include #include #include diff --git a/src/bench/bench.h b/src/bench/bench.h index 6065ddf3fc..f0705f4fed 100644 --- a/src/bench/bench.h +++ b/src/bench/bench.h @@ -5,17 +5,18 @@ #ifndef BITCOIN_BENCH_BENCH_H #define BITCOIN_BENCH_BENCH_H +#include // IWYU pragma: export #include #include #include +#include #include #include #include +#include #include -#include // IWYU pragma: export - /* * Usage: diff --git a/src/bench/bench_bitcoin.cpp b/src/bench/bench_bitcoin.cpp index a1b880e40b..555dca7d59 100644 --- a/src/bench/bench_bitcoin.cpp +++ b/src/bench/bench_bitcoin.cpp @@ -3,15 +3,16 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include - -#include #include #include +#include #include -#include +#include #include #include +#include +#include #include #include #include diff --git a/src/bench/bip324_ecdh.cpp b/src/bench/bip324_ecdh.cpp index 88f3932ad8..e6a614dadf 100644 --- a/src/bench/bip324_ecdh.cpp +++ b/src/bench/bip324_ecdh.cpp @@ -3,12 +3,12 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include - #include #include #include #include +#include #include #include diff --git a/src/bench/block_assemble.cpp b/src/bench/block_assemble.cpp index ba8ec16119..4005701cae 100644 --- a/src/bench/block_assemble.cpp +++ b/src/bench/block_assemble.cpp @@ -3,17 +3,21 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include -#include -#include +#include #include +#include #include +#include