diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2022-06-08 12:28:41 -0400 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2022-07-19 16:54:52 -0400 |
commit | 1e761a0169ebdbd3b5784af39fc2248b4546eeea (patch) | |
tree | f3dded08b411a00c505e5834e6b91034c6873d94 | |
parent | 6db6552377ad6316626b3ab8605a98f96f22c3d2 (diff) | |
download | bitcoin-1e761a0169ebdbd3b5784af39fc2248b4546eeea.tar.xz |
ci: Enable IWYU in src/kernel directory
Suggested https://github.com/bitcoin/bitcoin/pull/25308#discussion_r892505713
-rwxr-xr-x | ci/test/06_script_b.sh | 2 | ||||
-rw-r--r-- | src/kernel/checks.cpp | 2 | ||||
-rw-r--r-- | src/kernel/coinstats.cpp | 16 | ||||
-rw-r--r-- | src/kernel/coinstats.h | 6 |
4 files changed, 23 insertions, 3 deletions
diff --git a/ci/test/06_script_b.sh b/ci/test/06_script_b.sh index 29f30cfe9e..b60c9b6d30 100755 --- a/ci/test/06_script_b.sh +++ b/ci/test/06_script_b.sh @@ -42,7 +42,7 @@ if [ "${RUN_TIDY}" = "true" ]; then " src/compat"\ " src/dbwrapper.cpp"\ " src/init"\ - " src/kernel/mempool_persist.cpp"\ + " src/kernel"\ " src/node/chainstate.cpp"\ " src/policy/feerate.cpp"\ " src/policy/packages.cpp"\ diff --git a/src/kernel/checks.cpp b/src/kernel/checks.cpp index f476db60f5..4c303c172c 100644 --- a/src/kernel/checks.cpp +++ b/src/kernel/checks.cpp @@ -9,6 +9,8 @@ #include <util/time.h> #include <util/translation.h> +#include <memory> + namespace kernel { std::optional<bilingual_str> SanityChecks(const Context&) diff --git a/src/kernel/coinstats.cpp b/src/kernel/coinstats.cpp index f380871627..8d948bfc1d 100644 --- a/src/kernel/coinstats.cpp +++ b/src/kernel/coinstats.cpp @@ -4,16 +4,32 @@ #include <kernel/coinstats.h> +#include <chain.h> #include <coins.h> #include <crypto/muhash.h> #include <hash.h> +#include <node/blockstorage.h> +#include <primitives/transaction.h> +#include <script/script.h> #include <serialize.h> +#include <span.h> +#include <streams.h> +#include <sync.h> +#include <tinyformat.h> #include <uint256.h> +#include <util/check.h> #include <util/overflow.h> #include <util/system.h> #include <validation.h> +#include <version.h> +#include <cassert> +#include <iosfwd> +#include <iterator> #include <map> +#include <memory> +#include <string> +#include <utility> namespace kernel { diff --git a/src/kernel/coinstats.h b/src/kernel/coinstats.h index a15957233f..b7c1328e93 100644 --- a/src/kernel/coinstats.h +++ b/src/kernel/coinstats.h @@ -5,16 +5,18 @@ #ifndef BITCOIN_KERNEL_COINSTATS_H #define BITCOIN_KERNEL_COINSTATS_H -#include <chain.h> -#include <coins.h> #include <consensus/amount.h> #include <streams.h> #include <uint256.h> #include <cstdint> #include <functional> +#include <optional> class CCoinsView; +class Coin; +class COutPoint; +class CScript; namespace node { class BlockManager; } // namespace node |