diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-10-25 11:53:27 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-10-25 11:55:50 +0200 |
commit | fa5ccc4137fdd14a75a6fc860b8ff6fc455cb55d (patch) | |
tree | 976241224b3235dbc7eaea0eb349cbb054bcd7d8 | |
parent | d53400e75e2a4573229dba7f1a0da88eb936811c (diff) |
iwyu: Export prevector.h from script.h
This should cut some include bloat and seems fine to do, because
prevector exists primarily to represent scripts.
Also, add missing includes to script.h and addresstype.h
-rw-r--r-- | src/addresstype.h | 4 | ||||
-rw-r--r-- | src/script/script.cpp | 5 | ||||
-rw-r--r-- | src/script/script.h | 13 |
3 files changed, 14 insertions, 8 deletions
diff --git a/src/addresstype.h b/src/addresstype.h index d3422c6813..953ca4f968 100644 --- a/src/addresstype.h +++ b/src/addresstype.h @@ -5,13 +5,15 @@ #ifndef BITCOIN_ADDRESSTYPE_H #define BITCOIN_ADDRESSTYPE_H +#include <attributes.h> #include <pubkey.h> #include <script/script.h> #include <uint256.h> #include <util/hash_type.h> -#include <variant> #include <algorithm> +#include <variant> +#include <vector> class CNoDestination { private: diff --git a/src/script/script.cpp b/src/script/script.cpp index 1594d3cc79..80e8d26bcf 100644 --- a/src/script/script.cpp +++ b/src/script/script.cpp @@ -1,11 +1,14 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto -// Copyright (c) 2009-2021 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <script/script.h> +#include <crypto/common.h> #include <hash.h> +#include <uint256.h> +#include <util/hash_type.h> #include <util/strencodings.h> #include <string> diff --git a/src/script/script.h b/src/script/script.h index c329a2afd6..66d63fae89 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -1,5 +1,5 @@ // Copyright (c) 2009-2010 Satoshi Nakamoto -// Copyright (c) 2009-2022 The Bitcoin Core developers +// Copyright (c) 2009-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. @@ -8,18 +8,19 @@ #include <attributes.h> #include <crypto/common.h> -#include <prevector.h> +#include <prevector.h> // IWYU pragma: export #include <serialize.h> #include <uint256.h> #include <util/hash_type.h> -#include <assert.h> -#include <climits> +#include <cassert> +#include <cstdint> +#include <cstring> #include <limits> #include <stdexcept> -#include <stdint.h> -#include <string.h> #include <string> +#include <type_traits> +#include <utility> #include <vector> // Maximum number of bytes pushable to the stack |