compile
command_line: /opt/hostedtoolcache/cmake/4.0.3/x64/cmake-4.0.3-linux-x86_64/bin/cmake -E __run_co_compile --iwyu=iwyu;--driver-mode=g++ -- /usr/bin/clang++-17 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DBOOST_NO_CXX98_FUNCTION_BASE -I/home/runner/work/btck/btck/build/_deps/bitcoin-build/src -I/home/runner/work/btck/btck/build/_deps/bitcoin-src/src -I/home/runner/work/btck/btck/build/_deps/bitcoin-src/src/leveldb/include -I/home/runner/work/btck/btck/build/_deps/bitcoin-src/src/secp256k1/include -O2 -std=c++20 -fPIC -fvisibility=default -fdebug-prefix-map=/home/runner/work/btck/btck/build/_deps/bitcoin-src/src=. -fmacro-prefix-map=/home/runner/work/btck/btck/build/_deps/bitcoin-src/src=. -Wall -Wextra -Wgnu -Wformat -Wformat-security -Wvla -Wshadow-field -Wthread-safety -Wloop-analysis -Wredundant-decls -Wunused-member-function -Wdate-time -Wconditional-uninitialized -Woverloaded-virtual -Wsuggest-override -Wimplicit-fallthrough -Wunreachable-code -Wdocumentation -Wself-assign -Wundef -Wno-unused-parameter -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -Wstack-protector -fstack-protector-all -fcf-protection=full -fstack-clash-protection -MD -MT _deps/bitcoin-build/src/kernel/CMakeFiles/bitcoinkernel.dir/__/node/blockstorage.cpp.o -MF _deps/bitcoin-build/src/kernel/CMakeFiles/bitcoinkernel.dir/__/node/blockstorage.cpp.o.d -o _deps/bitcoin-build/src/kernel/CMakeFiles/bitcoinkernel.dir/__/node/blockstorage.cpp.o -c /home/runner/work/btck/btck/build/_deps/bitcoin-src/src/node/blockstorage.cpp
working_directory: "/home/runner/work/btck/btck/build"
Target: bitcoinkernel
Target Type: STATIC_LIBRARY
Source: /home/runner/work/btck/btck/build/_deps/bitcoin-src/src/node/blockstorage.cpp
Language: C++
Config: Release
stderr:
Warning: include-what-you-use reported diagnostics:
/home/runner/work/btck/btck/build/_deps/bitcoin-src/src/node/blockstorage.h should add these lines:
#include <algorithm> // for max
#include <cstddef> // for size_t, byte
#include <iosfwd> // for ostream
/home/runner/work/btck/btck/build/_deps/bitcoin-src/src/node/blockstorage.h should remove these lines:
The full include-list for /home/runner/work/btck/btck/build/_deps/bitcoin-src/src/node/blockstorage.h:
#include <attributes.h> // for LIFETIMEBOUND
#include <chain.h> // for CBlockFileInfo, CBlockIndex
#include <dbwrapper.h> // for CDBWrapper
#include <flatfile.h> // for FlatFilePos, FlatFileSeq
#include <kernel/blockmanager_opts.h> // for BlockManagerOpts
#include <kernel/chainparams.h> // for CChainParams
#include <kernel/cs_main.h> // for cs_main
#include <kernel/messagestartchars.h> // for MessageStartChars
#include <primitives/block.h> // for CBlock
#include <streams.h> // for AutoFile
#include <sync.h> // for EXCLUSIVE_LOCKS_REQUIRED, GUAR...
#include <uint256.h> // for uint256, operator==
#include <util/fs.h> // for path
#include <util/hasher.h> // for BlockHasher
#include <algorithm> // for max
#include <array> // for array, tuple_size_v
#include <atomic> // for atomic, atomic_bool
#include <cstddef> // for size_t, byte
#include <cstdint> // for uint64_t, uint32_t, uint8_t
#include <functional> // for function
#include <iosfwd> // for ostream
#include <limits> // for numeric_limits
#include <map> // for multimap
#include <memory> // for unique_ptr
#include <optional> // for optional, nullopt
#include <set> // for set
#include <span> // for span
#include <string> // for string
#include <unordered_map> // for unordered_map
#include <utility> // for pair
#include <vector> // for vector
class BlockValidationState; // lines 38-38
class CBlockUndo; // lines 39-39
class Chainstate; // lines 40-40
class ChainstateManager; // lines 41-41
namespace Consensus { struct Params; } // lines 43-43
namespace util { class SignalInterrupt; } // lines 46-46
---
/home/runner/work/btck/btck/build/_deps/bitcoin-src/src/node/blockstorage.cpp should add these lines:
#include <exception> // for exception
#include <iterator> // for operator==, reverse_iter...
#include <ostream> // for basic_ostream, operator<<
#include <stdexcept> // for runtime_error
#include <system_error> // for error_code
#include "util/hasher.h" // for BlockHasher
/home/runner/work/btck/btck/build/_deps/bitcoin-src/src/node/blockstorage.cpp should remove these lines:
- #include <util/batchpriority.h> // lines 31-31
The full include-list for /home/runner/work/btck/btck/build/_deps/bitcoin-src/src/node/blockstorage.cpp:
#include <node/blockstorage.h>
#include <arith_uint256.h> // for arith_uint256, base_uint
#include <chain.h> // for CBlockFileInfo, CBlockIndex
#include <consensus/params.h> // for Params
#include <consensus/validation.h> // for BlockValidationState
#include <dbwrapper.h> // for CDBIterator, CDBBatch
#include <flatfile.h> // for FlatFilePos, FlatFileSeq
#include <hash.h> // for HashVerifier, HashWriter
#include <kernel/blockmanager_opts.h> // for BlockManagerOpts
#include <kernel/chainparams.h> // for AssumeutxoData, CChainPa...
#include <kernel/messagestartchars.h> // for MessageStartChars
#include <kernel/notifications_interface.h> // for Notifications
#include <logging.h> // for LogPrintFormatInternal
#include <pow.h> // for CheckProofOfWork
#include <primitives/block.h> // for CBlock, CBlockHeader
#include <primitives/transaction.h> // for TX_WITH_WITNESS, Transac...
#include <random.h> // for FastRandomContext
#include <serialize.h> // for GetSerializeSize, Params...
#include <signet.h> // for CheckSignetBlockSolution
#include <span.h> // for Span, MakeWritableByteSpan
#include <streams.h> // for AutoFile
#include <sync.h> // for MaybeCheckNotHeld, Asser...
#include <tinyformat.h> // for format, strprintf
#include <uint256.h> // for uint256, operator!=, bas...
#include <undo.h> // for CBlockUndo
#include <util/check.h> // for inline_assertion_check
#include <util/fs.h> // for path, directory_iterator
#include <util/signalinterrupt.h> // for SignalInterrupt
#include <util/strencodings.h> // for HexStr, LocaleIndependen...
#include <util/translation.h> // for TranslatedLiteral, _
#include <validation.h> // for cs_main, ChainstateManager
#include <cstddef> // for size_t, byte
#include <exception> // for exception
#include <iterator> // for operator==, reverse_iter...
#include <map> // for _Rb_tree_const_iterator
#include <ostream> // for basic_ostream, operator<<
#include <ranges> // for all_t, operator|, revers...
#include <stdexcept> // for runtime_error
#include <system_error> // for error_code
#include <unordered_map> // for operator==, _Node_iterator
#include "util/hasher.h" // for BlockHasher
---