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/__/hash.cpp.o -MF _deps/bitcoin-build/src/kernel/CMakeFiles/bitcoinkernel.dir/__/hash.cpp.o.d -o _deps/bitcoin-build/src/kernel/CMakeFiles/bitcoinkernel.dir/__/hash.cpp.o -c /home/runner/work/btck/btck/build/_deps/bitcoin-src/src/hash.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/hash.cpp
Language: C++
Config: Release
stderr:
Warning: include-what-you-use reported diagnostics:
/home/runner/work/btck/btck/build/_deps/bitcoin-src/src/hash.h should add these lines:
#include <assert.h> // for assert
#include <stdint.h> // for uint64_t
#include <algorithm> // for min
#include <cstddef> // for size_t, byte
/home/runner/work/btck/btck/build/_deps/bitcoin-src/src/hash.h should remove these lines:
- #include <prevector.h> // lines 13-13
- #include <vector> // lines 19-19
The full include-list for /home/runner/work/btck/btck/build/_deps/bitcoin-src/src/hash.h:
#include <assert.h> // for assert
#include <attributes.h> // for LIFETIMEBOUND
#include <crypto/common.h> // for ReadLE64
#include <crypto/ripemd160.h> // for CRIPEMD160
#include <crypto/sha256.h> // for CSHA256
#include <serialize.h> // for Serialize, Unserialize
#include <span.h> // for Span, MakeUCharSpan, UCharCast
#include <stdint.h> // for uint64_t
#include <uint256.h> // for uint256, uint160
#include <algorithm> // for min
#include <cstddef> // for size_t, byte
#include <string> // for string
---
/home/runner/work/btck/btck/build/_deps/bitcoin-src/src/hash.cpp should add these lines:
#include "crypto/sha256.h" // for CSHA256
#include "uint256.h" // for uint256
/home/runner/work/btck/btck/build/_deps/bitcoin-src/src/hash.cpp should remove these lines:
The full include-list for /home/runner/work/btck/btck/build/_deps/bitcoin-src/src/hash.cpp:
#include <hash.h>
#include <crypto/common.h> // for ReadLE32, WriteBE32
#include <crypto/hmac_sha512.h> // for CHMAC_SHA512
#include <span.h> // for Span
#include <bit> // for rotl
#include <string> // for string
#include "crypto/sha256.h" // for CSHA256
#include "uint256.h" // for uint256
---