mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-12 14:21:20 +02:00
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
This commit is contained in:
parent
d53400e75e
commit
fa5ccc4137
@ -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:
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user