Skip to content

Commit

Permalink
ci: Enable IWYU in src/kernel directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanofsky committed Jun 8, 2022
1 parent 73b8299 commit fb95175
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ci/test/06_script_b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,14 @@ if [ "${RUN_TIDY}" = "true" ]; then
" src/compat"\
" src/dbwrapper.cpp"\
" src/init"\
<<<<<<< HEAD
" src/kernel/mempool_persist.cpp"\
" src/node/chainstate.cpp"\
||||||| parent of fb31664f944 (ci: Enable IWYU in src/kernel directory)
" src/kernel/mempool_persist.cpp"\
=======
" src/kernel"\
>>>>>>> fb31664f944 (ci: Enable IWYU in src/kernel directory)
" src/policy/feerate.cpp"\
" src/policy/packages.cpp"\
" src/policy/settings.cpp"\
Expand Down
2 changes: 2 additions & 0 deletions src/kernel/checks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include <util/time.h>
#include <util/translation.h>

#include <memory>

namespace kernel {

std::optional<bilingual_str> SanityChecks(const Context&)
Expand Down
16 changes: 16 additions & 0 deletions src/kernel/coinstats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
6 changes: 4 additions & 2 deletions src/kernel/coinstats.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb95175

Please sign in to comment.