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/chain.cpp.o -MF _deps/bitcoin-build/src/kernel/CMakeFiles/bitcoinkernel.dir/chain.cpp.o.d -o _deps/bitcoin-build/src/kernel/CMakeFiles/bitcoinkernel.dir/chain.cpp.o -c /home/runner/work/btck/btck/build/_deps/bitcoin-src/src/kernel/chain.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/kernel/chain.cpp

Language: C++

Config: Release

stderr:

Warning: include-what-you-use reported diagnostics:

/home/runner/work/btck/btck/build/_deps/bitcoin-src/src/chain.h should add these lines:
#include <bits/chrono.h>       // for seconds
namespace Consensus { struct Params; }

/home/runner/work/btck/btck/build/_deps/bitcoin-src/src/chain.h should remove these lines:
- #include <consensus/params.h>  // lines 10-10

The full include-list for /home/runner/work/btck/btck/build/_deps/bitcoin-src/src/chain.h:
#include <arith_uint256.h>     // for arith_uint256
#include <bits/chrono.h>       // for seconds
#include <flatfile.h>          // for FlatFilePos
#include <kernel/cs_main.h>    // for cs_main
#include <primitives/block.h>  // for CBlockHeader, CBlockLocator
#include <serialize.h>         // for READWRITE, VARINT, VARINT_MODE, VarInt...
#include <sync.h>              // for AssertLockHeldInternal, AssertLockHeld
#include <uint256.h>           // for uint256
#include <util/time.h>         // for NodeSeconds
#include <algorithm>           // for sort
#include <cassert>             // for assert
#include <cstdint>             // for int64_t, uint32_t, uint64_t, int32_t
#include <string>              // for string
#include <vector>              // for vector
namespace Consensus { struct Params; }
---

(/home/runner/work/btck/btck/build/_deps/bitcoin-src/src/kernel/chain.h has correct #includes/fwd-decls)

/home/runner/work/btck/btck/build/_deps/bitcoin-src/src/kernel/chain.cpp should add these lines:
#include "kernel/cs_main.h"    // for cs_main

/home/runner/work/btck/btck/build/_deps/bitcoin-src/src/kernel/chain.cpp should remove these lines:

The full include-list for /home/runner/work/btck/btck/build/_deps/bitcoin-src/src/kernel/chain.cpp:
#include <chain.h>
#include <kernel/chain.h>
#include <interfaces/chain.h>  // for BlockInfo
#include <sync.h>              // for MaybeCheckNotHeld, LOCK
#include <uint256.h>           // for uint256
#include "kernel/cs_main.h"    // for cs_main
class CBlock;  // lines 11-11
---
Status: 0
Loading...