clang-tidy: Apply modernize-deprecated-headers

This can be reproduced according to the developer notes with something
like

( cd ./src/ && ../contrib/devtools/run-clang-tidy.py -p ../bld-cmake -fix -j $(nproc) )

Also, the header related changes were done manually.
This commit is contained in:
MarcoFalke committed 2025-06-03 15:13:54 +02:00
1 parent 2d819fa4df
commit fae71d30f7
87 files changed
+101 -98

No files matched your search

+3
View File
@@ -9,6 +9,7 @@ bugprone-lambda-function-name,
bugprone-unhandled-self-assignment, bugprone-unhandled-self-assignment,
misc-unused-using-decls, misc-unused-using-decls,
misc-no-recursion, misc-no-recursion,
modernize-deprecated-headers,
modernize-use-default-member-init, modernize-use-default-member-init,
modernize-use-emplace, modernize-use-emplace,
modernize-use-equals-default, modernize-use-equals-default,
@@ -29,6 +30,8 @@ readability-redundant-string-init,
HeaderFilterRegex: '.' HeaderFilterRegex: '.'
WarningsAsErrors: '*' WarningsAsErrors: '*'
CheckOptions: CheckOptions:
- key: modernize-deprecated-headers.CheckHeaderFile
value: false
- key: performance-move-const-arg.CheckTriviallyCopyableMove - key: performance-move-const-arg.CheckTriviallyCopyableMove
value: false value: false
- key: bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField - key: bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField
+2 -2
View File
@@ -9,8 +9,8 @@
#include <util/strencodings.h> #include <util/strencodings.h>
#include <util/string.h> #include <util/string.h>
#include <assert.h> #include <cassert>
#include <string.h> #include <cstring>
#include <limits> #include <limits>
+1 -1
View File
@@ -7,7 +7,7 @@
#include <util/vector.h> #include <util/vector.h>
#include <array> #include <array>
#include <assert.h> #include <cassert>
#include <numeric> #include <numeric>
#include <optional> #include <optional>
+1 -1
View File
@@ -14,7 +14,7 @@
#ifndef BITCOIN_BECH32_H #ifndef BITCOIN_BECH32_H
#define BITCOIN_BECH32_H #define BITCOIN_BECH32_H
#include <stdint.h> #include <cstdint>
#include <string> #include <string>
#include <vector> #include <vector>
+1 -1
View File
@@ -5,7 +5,7 @@
#include <bench/bench.h> #include <bench/bench.h>
// Extremely fast-running benchmark: // Extremely fast-running benchmark:
#include <math.h> #include <cmath>
volatile double sum = 0.0; // volatile, global so not optimized away volatile double sum = 0.0; // volatile, global so not optimized away
+1 -1
View File
@@ -4,7 +4,7 @@
#include <bench/bench.h> #include <bench/bench.h>
#include <random.h> #include <random.h>
#include <stddef.h> #include <cstddef>
#include <util/strencodings.h> #include <util/strencodings.h>
#include <cassert> #include <cassert>
#include <optional> #include <optional>
+1 -1
View File
@@ -16,7 +16,7 @@
#include <uint256.h> #include <uint256.h>
#include <algorithm> #include <algorithm>
#include <assert.h> #include <cassert>
#include <cstdint> #include <cstdint>
#include <cstddef> #include <cstddef>
#include <iterator> #include <iterator>
+1 -1
View File
@@ -9,7 +9,7 @@
#include <tinyformat.h> #include <tinyformat.h>
#include <util/chaintype.h> #include <util/chaintype.h>
#include <assert.h> #include <cassert>
void SetupChainParamsBaseOptions(ArgsManager& argsman) void SetupChainParamsBaseOptions(ArgsManager& argsman)
{ {
+1 -1
View File
@@ -8,7 +8,7 @@
#include <algorithm> #include <algorithm>
#include <numeric> #include <numeric>
#include <optional> #include <optional>
#include <stdint.h> #include <cstdint>
#include <vector> #include <vector>
#include <utility> #include <utility>
+2 -2
View File
@@ -16,8 +16,8 @@
#include <util/check.h> #include <util/check.h>
#include <util/hasher.h> #include <util/hasher.h>
#include <assert.h> #include <cassert>
#include <stdint.h> #include <cstdint>
#include <functional> #include <functional>
#include <unordered_map> #include <unordered_map>
+1 -1
View File
@@ -16,7 +16,7 @@
#include <map> #include <map>
#include <optional> #include <optional>
#include <set> #include <set>
#include <stdint.h> #include <cstdint>
#include <string> #include <string>
#include <variant> #include <variant>
#include <vector> #include <vector>
+1 -1
View File
@@ -7,7 +7,7 @@
#define BITCOIN_CONSENSUS_CONSENSUS_H #define BITCOIN_CONSENSUS_CONSENSUS_H
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <cstdint>
/** The maximum allowed size for a serialized block, in bytes (only for buffer size limits) */ /** The maximum allowed size for a serialized block, in bytes (only for buffer size limits) */
static const unsigned int MAX_BLOCK_SERIALIZED_SIZE = 4000000; static const unsigned int MAX_BLOCK_SERIALIZED_SIZE = 4000000;
+1 -1
View File
@@ -7,7 +7,7 @@
#include <consensus/amount.h> #include <consensus/amount.h>
#include <stdint.h> #include <cstdint>
#include <vector> #include <vector>
class CBlockIndex; class CBlockIndex;
+1 -1
View File
@@ -4,7 +4,7 @@
#include <crypto/aes.h> #include <crypto/aes.h>
#include <string.h> #include <cstring>
extern "C" { extern "C" {
#include <crypto/ctaes/ctaes.c> #include <crypto/ctaes/ctaes.c>
+1 -1
View File
@@ -12,7 +12,7 @@
#include <algorithm> #include <algorithm>
#include <bit> #include <bit>
#include <string.h> #include <cstring>
#define QUARTERROUND(a,b,c,d) \ #define QUARTERROUND(a,b,c,d) \
a += b; d = std::rotl(d ^ a, 16); \ a += b; d = std::rotl(d ^ a, 16); \
+1 -1
View File
@@ -10,7 +10,7 @@
#include <array> #include <array>
#include <cstddef> #include <cstddef>
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <cstdint>
#include <utility> #include <utility>
// classes for ChaCha20 256-bit stream cipher developed by Daniel J. Bernstein // classes for ChaCha20 256-bit stream cipher developed by Daniel J. Bernstein
+1 -1
View File
@@ -10,7 +10,7 @@
#include <span.h> #include <span.h>
#include <support/cleanse.h> #include <support/cleanse.h>
#include <assert.h> #include <cassert>
#include <cstddef> #include <cstddef>
AEADChaCha20Poly1305::AEADChaCha20Poly1305(std::span<const std::byte> key) noexcept : m_chacha20(key) AEADChaCha20Poly1305::AEADChaCha20Poly1305(std::span<const std::byte> key) noexcept : m_chacha20(key)
+1 -1
View File
@@ -6,7 +6,7 @@
#define BITCOIN_CRYPTO_CHACHA20POLY1305_H #define BITCOIN_CRYPTO_CHACHA20POLY1305_H
#include <cstddef> #include <cstddef>
#include <stdint.h> #include <cstdint>
#include <crypto/chacha20.h> #include <crypto/chacha20.h>
#include <crypto/poly1305.h> #include <crypto/poly1305.h>
+2 -2
View File
@@ -4,8 +4,8 @@
#include <crypto/hkdf_sha256_32.h> #include <crypto/hkdf_sha256_32.h>
#include <assert.h> #include <cassert>
#include <string.h> #include <cstring>
CHKDF_HMAC_SHA256_L32::CHKDF_HMAC_SHA256_L32(const unsigned char* ikm, size_t ikmlen, const std::string& salt) CHKDF_HMAC_SHA256_L32::CHKDF_HMAC_SHA256_L32(const unsigned char* ikm, size_t ikmlen, const std::string& salt)
{ {
+1 -1
View File
@@ -8,7 +8,7 @@
#include <crypto/hmac_sha256.h> #include <crypto/hmac_sha256.h>
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <cstdint>
/** A rfc5869 HKDF implementation with HMAC_SHA256 and fixed key output length of 32 bytes (L=32) */ /** A rfc5869 HKDF implementation with HMAC_SHA256 and fixed key output length of 32 bytes (L=32) */
class CHKDF_HMAC_SHA256_L32 class CHKDF_HMAC_SHA256_L32
+1 -1
View File
@@ -4,7 +4,7 @@
#include <crypto/hmac_sha256.h> #include <crypto/hmac_sha256.h>
#include <string.h> #include <cstring>
CHMAC_SHA256::CHMAC_SHA256(const unsigned char* key, size_t keylen) CHMAC_SHA256::CHMAC_SHA256(const unsigned char* key, size_t keylen)
{ {
+1 -1
View File
@@ -8,7 +8,7 @@
#include <crypto/sha256.h> #include <crypto/sha256.h>
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <cstdint>
/** A hasher class for HMAC-SHA-256. */ /** A hasher class for HMAC-SHA-256. */
class CHMAC_SHA256 class CHMAC_SHA256
+1 -1
View File
@@ -4,7 +4,7 @@
#include <crypto/hmac_sha512.h> #include <crypto/hmac_sha512.h>
#include <string.h> #include <cstring>
CHMAC_SHA512::CHMAC_SHA512(const unsigned char* key, size_t keylen) CHMAC_SHA512::CHMAC_SHA512(const unsigned char* key, size_t keylen)
{ {
+1 -1
View File
@@ -8,7 +8,7 @@
#include <crypto/sha512.h> #include <crypto/sha512.h>
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <cstdint>
/** A hasher class for HMAC-SHA-512. */ /** A hasher class for HMAC-SHA-512. */
class CHMAC_SHA512 class CHMAC_SHA512
+1 -1
View File
@@ -8,7 +8,7 @@
#include <serialize.h> #include <serialize.h>
#include <uint256.h> #include <uint256.h>
#include <stdint.h> #include <cstdint>
class Num3072 class Num3072
{ {
+1 -1
View File
@@ -5,7 +5,7 @@
#include <crypto/common.h> #include <crypto/common.h>
#include <crypto/poly1305.h> #include <crypto/poly1305.h>
#include <string.h> #include <cstring>
namespace poly1305_donna { namespace poly1305_donna {
+1 -1
View File
@@ -9,7 +9,7 @@
#include <cassert> #include <cassert>
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <cstdint>
#define POLY1305_BLOCK_SIZE 16 #define POLY1305_BLOCK_SIZE 16
+1 -1
View File
@@ -6,7 +6,7 @@
#include <crypto/common.h> #include <crypto/common.h>
#include <string.h> #include <cstring>
// Internal implementation code. // Internal implementation code.
namespace namespace
+1 -1
View File
@@ -6,7 +6,7 @@
#define BITCOIN_CRYPTO_RIPEMD160_H #define BITCOIN_CRYPTO_RIPEMD160_H
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <cstdint>
/** A hasher class for RIPEMD-160. */ /** A hasher class for RIPEMD-160. */
class CRIPEMD160 class CRIPEMD160
+1 -1
View File
@@ -6,7 +6,7 @@
#include <crypto/common.h> #include <crypto/common.h>
#include <string.h> #include <cstring>
// Internal implementation code. // Internal implementation code.
namespace namespace
+1 -1
View File
@@ -6,7 +6,7 @@
#define BITCOIN_CRYPTO_SHA1_H #define BITCOIN_CRYPTO_SHA1_H
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <cstdint>
/** A hasher class for SHA1. */ /** A hasher class for SHA1. */
class CSHA1 class CSHA1
+1 -1
View File
@@ -6,7 +6,7 @@
#define BITCOIN_CRYPTO_SHA256_H #define BITCOIN_CRYPTO_SHA256_H
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <cstdint>
#include <string> #include <string>
/** A hasher class for SHA-256. */ /** A hasher class for SHA-256. */
+1 -1
View File
@@ -4,7 +4,7 @@
#ifdef ENABLE_AVX2 #ifdef ENABLE_AVX2
#include <stdint.h> #include <cstdint>
#include <immintrin.h> #include <immintrin.h>
#include <attributes.h> #include <attributes.h>
+1 -1
View File
@@ -6,7 +6,7 @@
// (available at the bottom of this file). // (available at the bottom of this file).
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <cstdint>
#if defined(__x86_64__) || defined(__amd64__) #if defined(__x86_64__) || defined(__amd64__)
+1 -1
View File
@@ -4,7 +4,7 @@
#ifdef ENABLE_SSE41 #ifdef ENABLE_SSE41
#include <stdint.h> #include <cstdint>
#include <immintrin.h> #include <immintrin.h>
#include <attributes.h> #include <attributes.h>
+1 -1
View File
@@ -8,7 +8,7 @@
#if defined(ENABLE_SSE41) && defined(ENABLE_X86_SHANI) #if defined(ENABLE_SSE41) && defined(ENABLE_X86_SHANI)
#include <stdint.h> #include <cstdint>
#include <immintrin.h> #include <immintrin.h>
#include <attributes.h> #include <attributes.h>
+1 -1
View File
@@ -8,7 +8,7 @@
#include <span.h> #include <span.h>
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <cstdint>
//! The Keccak-f[1600] transform. //! The Keccak-f[1600] transform.
void KeccakF(uint64_t (&st)[25]); void KeccakF(uint64_t (&st)[25]);
+1 -1
View File
@@ -6,7 +6,7 @@
#include <crypto/common.h> #include <crypto/common.h>
#include <string.h> #include <cstring>
// Internal implementation code. // Internal implementation code.
namespace namespace
+1 -1
View File
@@ -6,7 +6,7 @@
#define BITCOIN_CRYPTO_SHA512_H #define BITCOIN_CRYPTO_SHA512_H
#include <cstdlib> #include <cstdlib>
#include <stdint.h> #include <cstdint>
/** A hasher class for SHA-512. */ /** A hasher class for SHA-512. */
class CSHA512 class CSHA512
+1 -1
View File
@@ -5,7 +5,7 @@
#ifndef BITCOIN_CRYPTO_SIPHASH_H #ifndef BITCOIN_CRYPTO_SIPHASH_H
#define BITCOIN_CRYPTO_SIPHASH_H #define BITCOIN_CRYPTO_SIPHASH_H
#include <stdint.h> #include <cstdint>
#include <span.h> #include <span.h>
#include <uint256.h> #include <uint256.h>
+1 -1
View File
@@ -105,7 +105,7 @@
#include <vector> #include <vector>
#ifndef WIN32 #ifndef WIN32
#include <signal.h> #include <csignal>
#include <sys/stat.h> #include <sys/stat.h>
#endif #endif
+2 -2
View File
@@ -17,8 +17,8 @@
#include <functional> #include <functional>
#include <memory> #include <memory>
#include <stddef.h> #include <cstddef>
#include <stdint.h> #include <cstdint>
#include <string> #include <string>
#include <tuple> #include <tuple>
#include <vector> #include <vector>
+1 -1
View File
@@ -4,7 +4,7 @@
#include <kernel/disconnected_transactions.h> #include <kernel/disconnected_transactions.h>
#include <assert.h> #include <cassert>
#include <core_memusage.h> #include <core_memusage.h>
#include <memusage.h> #include <memusage.h>
#include <primitives/transaction.h> #include <primitives/transaction.h>
+2 -2
View File
@@ -18,8 +18,8 @@
#include <functional> #include <functional>
#include <memory> #include <memory>
#include <set> #include <set>
#include <stddef.h> #include <cstddef>
#include <stdint.h> #include <cstdint>
class CBlockIndex; class CBlockIndex;
+2 -2
View File
@@ -12,8 +12,8 @@
#include <util/strencodings.h> #include <util/strencodings.h>
#include <algorithm> #include <algorithm>
#include <assert.h> #include <cassert>
#include <string.h> #include <cstring>
/// Maximum witness length for Bech32 addresses. /// Maximum witness length for Bech32 addresses.
static constexpr std::size_t BECH32_WITNESS_PROG_MAX_LEN = 40; static constexpr std::size_t BECH32_WITNESS_PROG_MAX_LEN = 40;
+1 -1
View File
@@ -13,7 +13,7 @@
#include <functional> #include <functional>
#include <memory> #include <memory>
#include <stdint.h> #include <cstdint>
#include <string> #include <string>
#include <type_traits> #include <type_traits>
#include <unordered_set> #include <unordered_set>
+1 -1
View File
@@ -6,7 +6,7 @@
#define BITCOIN_NODE_CONNECTION_TYPES_H #define BITCOIN_NODE_CONNECTION_TYPES_H
#include <string> #include <string>
#include <stdint.h> #include <cstdint>
/** Different types of connections to a peer. This enum encapsulates the /** Different types of connections to a peer. This enum encapsulates the
* information we have available at the time of opening or accepting the * information we have available at the time of opening or accepting the
+1 -1
View File
@@ -15,7 +15,7 @@
#include <memory> #include <memory>
#include <optional> #include <optional>
#include <stdint.h> #include <cstdint>
#include <boost/multi_index/identity.hpp> #include <boost/multi_index/identity.hpp>
#include <boost/multi_index/indexed_by.hpp> #include <boost/multi_index/indexed_by.hpp>
+1 -1
View File
@@ -13,7 +13,7 @@
#include <memory> #include <memory>
#include <optional> #include <optional>
#include <set> #include <set>
#include <stdint.h> #include <cstdint>
#include <vector> #include <vector>
class CFeeRate; class CFeeRate;
+1 -1
View File
@@ -8,7 +8,7 @@
#include <consensus/params.h> #include <consensus/params.h>
#include <stdint.h> #include <cstdint>
class CBlockHeader; class CBlockHeader;
class CBlockIndex; class CBlockIndex;
+1 -1
View File
@@ -10,7 +10,7 @@
#include <interfaces/node.h> #include <interfaces/node.h>
#include <qt/initexecutor.h> #include <qt/initexecutor.h>
#include <assert.h> #include <cassert>
#include <memory> #include <memory>
#include <optional> #include <optional>
+1 -1
View File
@@ -23,7 +23,7 @@
#include <util/time.h> #include <util/time.h>
#include <validation.h> #include <validation.h>
#include <stdint.h> #include <cstdint>
#include <QDebug> #include <QDebug>
#include <QMetaObject> #include <QMetaObject>
+1 -1
View File
@@ -18,7 +18,7 @@
#ifdef USE_DBUS #ifdef USE_DBUS
#include <QDBusMetaType> #include <QDBusMetaType>
#include <QtDBus> #include <QtDBus>
#include <stdint.h> #include <cstdint>
#endif #endif
#ifdef Q_OS_MACOS #ifdef Q_OS_MACOS
#include <qt/macnotificationhandler.h> #include <qt/macnotificationhandler.h>
+1 -1
View File
@@ -12,7 +12,7 @@
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QFont> #include <QFont>
#include <assert.h> #include <cassert>
#include <variant> #include <variant>
struct bilingual_str; struct bilingual_str;
+1 -1
View File
@@ -19,7 +19,7 @@
#include <validation.h> #include <validation.h>
#include <wallet/types.h> #include <wallet/types.h>
#include <stdint.h> #include <cstdint>
#include <string> #include <string>
#include <QLatin1String> #include <QLatin1String>
+1 -1
View File
@@ -9,7 +9,7 @@
#include <key_io.h> #include <key_io.h>
#include <wallet/types.h> #include <wallet/types.h>
#include <stdint.h> #include <cstdint>
#include <QDateTime> #include <QDateTime>
+1 -1
View File
@@ -52,7 +52,7 @@
#include <validationinterface.h> #include <validationinterface.h>
#include <versionbits.h> #include <versionbits.h>
#include <stdint.h> #include <cstdint>
#include <condition_variable> #include <condition_variable>
#include <iterator> #include <iterator>
+1 -1
View File
@@ -13,7 +13,7 @@
#include <validation.h> #include <validation.h>
#include <any> #include <any>
#include <stdint.h> #include <cstdint>
#include <vector> #include <vector>
class CBlock; class CBlock;
+1 -1
View File
@@ -8,7 +8,7 @@
#include <tinyformat.h> #include <tinyformat.h>
#include <set> #include <set>
#include <stdint.h> #include <cstdint>
#include <string> #include <string>
#include <string_view> #include <string_view>
+1 -1
View File
@@ -44,7 +44,7 @@
#include <validationinterface.h> #include <validationinterface.h>
#include <memory> #include <memory>
#include <stdint.h> #include <cstdint>
using interfaces::BlockRef; using interfaces::BlockRef;
using interfaces::BlockTemplate; using interfaces::BlockTemplate;
+1 -1
View File
@@ -26,7 +26,7 @@
#include <util/check.h> #include <util/check.h>
#include <util/time.h> #include <util/time.h>
#include <stdint.h> #include <cstdint>
#ifdef HAVE_MALLOC_INFO #ifdef HAVE_MALLOC_INFO
#include <malloc.h> #include <malloc.h>
#endif #endif
+1 -1
View File
@@ -43,7 +43,7 @@
#include <validationinterface.h> #include <validationinterface.h>
#include <numeric> #include <numeric>
#include <stdint.h> #include <cstdint>
#include <univalue.h> #include <univalue.h>
+1 -1
View File
@@ -11,7 +11,7 @@
#include <functional> #include <functional>
#include <map> #include <map>
#include <stdint.h> #include <cstdint>
#include <string> #include <string>
#include <univalue.h> #include <univalue.h>
+3 -3
View File
@@ -12,14 +12,14 @@
#include <util/overflow.h> #include <util/overflow.h>
#include <algorithm> #include <algorithm>
#include <assert.h> #include <cassert>
#include <cstddef> #include <cstddef>
#include <cstdio> #include <cstdio>
#include <ios> #include <ios>
#include <limits> #include <limits>
#include <optional> #include <optional>
#include <stdint.h> #include <cstdint>
#include <string.h> #include <cstring>
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>
+1 -1
View File
@@ -7,7 +7,7 @@
#include <test/util/random.h> #include <test/util/random.h>
#include <test/util/setup_common.h> #include <test/util/setup_common.h>
#include <stdint.h> #include <cstdint>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
+1 -1
View File
@@ -21,7 +21,7 @@
#include <validation.h> #include <validation.h>
#include <array> #include <array>
#include <stdint.h> #include <cstdint>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
+1 -1
View File
@@ -14,7 +14,7 @@
#include <test/fuzz/util.h> #include <test/fuzz/util.h>
#include <test/fuzz/util/net.h> #include <test/fuzz/util/net.h>
#include <test/util/setup_common.h> #include <test/util/setup_common.h>
#include <time.h> #include <ctime>
#include <util/asmap.h> #include <util/asmap.h>
#include <util/chaintype.h> #include <util/chaintype.h>
+1 -1
View File
@@ -10,7 +10,7 @@
#include <optional> #include <optional>
#include <vector> #include <vector>
#include <assert.h> #include <cassert>
FUZZ_TARGET(asmap_direct) FUZZ_TARGET(asmap_direct)
{ {
+1 -1
View File
@@ -13,7 +13,7 @@
#include <util/feefrac.h> #include <util/feefrac.h>
#include <algorithm> #include <algorithm>
#include <stdint.h> #include <cstdint>
#include <vector> #include <vector>
#include <utility> #include <utility>
+2 -2
View File
@@ -9,10 +9,10 @@
#include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/util.h> #include <test/fuzz/util.h>
#include <assert.h> #include <cassert>
#include <optional> #include <optional>
#include <memory> #include <memory>
#include <stdint.h> #include <cstdint>
#include <vector> #include <vector>
namespace { namespace {
+1 -1
View File
@@ -32,7 +32,7 @@
#include <exception> #include <exception>
#include <optional> #include <optional>
#include <stdexcept> #include <stdexcept>
#include <stdint.h> #include <cstdint>
using node::SnapshotMetadata; using node::SnapshotMetadata;
+2 -2
View File
@@ -2,7 +2,7 @@
// Distributed under the MIT software license, see the accompanying // Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <stdint.h> #include <cstdint>
#include <vector> #include <vector>
@@ -12,7 +12,7 @@
#include <test/fuzz/fuzz.h> #include <test/fuzz/fuzz.h>
#include <test/fuzz/util.h> #include <test/fuzz/util.h>
#include <assert.h> #include <cassert>
namespace { namespace {
+1 -1
View File
@@ -15,7 +15,7 @@
#include <map> #include <map>
#include <memory> #include <memory>
#include <set> #include <set>
#include <stdint.h> #include <cstdint>
#include <utility> #include <utility>
using namespace cluster_linearize; using namespace cluster_linearize;
+1 -1
View File
@@ -8,7 +8,7 @@
#include <util/vecdeque.h> #include <util/vecdeque.h>
#include <deque> #include <deque>
#include <stdint.h> #include <cstdint>
namespace { namespace {
+2 -2
View File
@@ -6,10 +6,10 @@
#ifndef BITCOIN_TEST_SCRIPTNUM10_H #ifndef BITCOIN_TEST_SCRIPTNUM10_H
#define BITCOIN_TEST_SCRIPTNUM10_H #define BITCOIN_TEST_SCRIPTNUM10_H
#include <assert.h> #include <cassert>
#include <limits> #include <limits>
#include <stdexcept> #include <stdexcept>
#include <stdint.h> #include <cstdint>
#include <string> #include <string>
#include <vector> #include <vector>
+2 -2
View File
@@ -7,8 +7,8 @@
#include <test/util/setup_common.h> #include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <limits.h> #include <climits>
#include <stdint.h> #include <cstdint>
BOOST_FIXTURE_TEST_SUITE(scriptnum_tests, BasicTestingSetup) BOOST_FIXTURE_TEST_SUITE(scriptnum_tests, BasicTestingSetup)
+1 -1
View File
@@ -8,7 +8,7 @@
#include <test/util/setup_common.h> #include <test/util/setup_common.h>
#include <util/strencodings.h> #include <util/strencodings.h>
#include <stdint.h> #include <cstdint>
#include <string> #include <string>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
+1 -1
View File
@@ -12,7 +12,7 @@
#include <util/bitset.h> #include <util/bitset.h>
#include <util/feefrac.h> #include <util/feefrac.h>
#include <stdint.h> #include <cstdint>
#include <numeric> #include <numeric>
#include <vector> #include <vector>
#include <utility> #include <utility>
+1 -1
View File
@@ -10,7 +10,7 @@
#include <test/util/random.h> #include <test/util/random.h>
#include <uint256.h> #include <uint256.h>
#include <stdint.h> #include <cstdint>
#include <utility> #include <utility>
COutPoint AddTestCoin(FastRandomContext& rng, CCoinsViewCache& coins_view) COutPoint AddTestCoin(FastRandomContext& rng, CCoinsViewCache& coins_view)
+1 -1
View File
@@ -5,7 +5,7 @@
#include <compare> #include <compare>
#include <memory> #include <memory>
#include <optional> #include <optional>
#include <stdint.h> #include <cstdint>
#include <vector> #include <vector>
#include <utility> #include <utility>
+1 -1
View File
@@ -21,7 +21,7 @@
#include <unordered_map> #include <unordered_map>
#include <utility> #include <utility>
#include <assert.h> #include <cassert>
namespace { namespace {
+1 -1
View File
@@ -5,7 +5,7 @@
#ifndef BITCOIN_UTIL_FEEFRAC_H #ifndef BITCOIN_UTIL_FEEFRAC_H
#define BITCOIN_UTIL_FEEFRAC_H #define BITCOIN_UTIL_FEEFRAC_H
#include <stdint.h> #include <cstdint>
#include <compare> #include <compare>
#include <vector> #include <vector>
#include <span.h> #include <span.h>
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef WIN32 #ifndef WIN32
#include <errno.h> #include <cerrno>
#include <fcntl.h> #include <fcntl.h>
#include <optional> #include <optional>
#include <unistd.h> #include <unistd.h>
+1 -1
View File
@@ -41,7 +41,7 @@
#include <optional> #include <optional>
#include <set> #include <set>
#include <span> #include <span>
#include <stdint.h> #include <cstdint>
#include <string> #include <string>
#include <type_traits> #include <type_traits>
#include <utility> #include <utility>
+1 -1
View File
@@ -17,7 +17,7 @@
#include <wallet/db.h> #include <wallet/db.h>
#include <sqlite3.h> #include <sqlite3.h>
#include <stdint.h> #include <cstdint>
#include <optional> #include <optional>
#include <utility> #include <utility>
+1 -1
View File
@@ -6,7 +6,7 @@
#include <future> #include <future>
#include <memory> #include <memory>
#include <stdint.h> #include <cstdint>
#include <vector> #include <vector>
#include <addresstype.h> #include <addresstype.h>
+1 -1
View File
@@ -12,7 +12,7 @@
#include <wallet/walletutil.h> #include <wallet/walletutil.h>
#include <key.h> #include <key.h>
#include <stdint.h> #include <cstdint>
#include <string> #include <string>
#include <vector> #include <vector>