Skip to content

Commit dddd40b

Browse files
author
MarcoFalke
committed
scripted-diff: Add IWYU pragma keep to bitcoin-config.h includes
-BEGIN VERIFY SCRIPT- perl -0777 -pi -e 's/#if defined\(HAVE_CONFIG_H\)\n#include <config\/bitcoin-config.h>.*\n#endif.*\n/#include <config\/bitcoin-config.h> \/\/ IWYU pragma: keep\n/g' $( git grep -l '#include <config/bitcoin-config.h>' ) -END VERIFY SCRIPT-
1 parent 842f7fd commit dddd40b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+77
-231
lines changed

src/addrdb.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

6-
#if defined(HAVE_CONFIG_H)
7-
#include <config/bitcoin-config.h>
8-
#endif
6+
#include <config/bitcoin-config.h> // IWYU pragma: keep
97

108
#include <addrdb.h>
119

src/addrman.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

6-
#if defined(HAVE_CONFIG_H)
7-
#include <config/bitcoin-config.h>
8-
#endif
6+
#include <config/bitcoin-config.h> // IWYU pragma: keep
97

108
#include <addrman.h>
119
#include <addrman_impl.h>

src/bench/wallet_create.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or https://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <bench/bench.h>
108
#include <node/context.h>

src/bench/wallet_ismine.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif // HAVE_CONFIG_H
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86
#include <bench/bench.h>
97
#include <interfaces/chain.h>
108
#include <key.h>

src/bench/wallet_loading.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <bench/bench.h>
108
#include <interfaces/chain.h>

src/bitcoin-cli.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

6-
#if defined(HAVE_CONFIG_H)
7-
#include <config/bitcoin-config.h>
8-
#endif
6+
#include <config/bitcoin-config.h> // IWYU pragma: keep
97

108
#include <chainparamsbase.h>
119
#include <clientversion.h>

src/bitcoin-tx.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <chainparamsbase.h>
108
#include <clientversion.h>

src/bitcoin-util.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <arith_uint256.h>
108
#include <chain.h>

src/bitcoin-wallet.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <chainparams.h>
108
#include <chainparamsbase.h>

src/bitcoind.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

6-
#if defined(HAVE_CONFIG_H)
7-
#include <config/bitcoin-config.h>
8-
#endif
6+
#include <config/bitcoin-config.h> // IWYU pragma: keep
97

108
#include <chainparams.h>
119
#include <clientversion.h>

src/clientversion.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <clientversion.h>
108
#include <util/translation.h>

src/clientversion.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77

88
#include <util/macros.h>
99

10-
#if defined(HAVE_CONFIG_H)
11-
#include <config/bitcoin-config.h>
12-
#endif //HAVE_CONFIG_H
10+
#include <config/bitcoin-config.h> // IWYU pragma: keep
1311

1412
// Check that required client information is defined
1513
#if !defined(CLIENT_VERSION_MAJOR) || !defined(CLIENT_VERSION_MINOR) || !defined(CLIENT_VERSION_BUILD) || !defined(CLIENT_VERSION_IS_RELEASE) || !defined(COPYRIGHT_YEAR)

src/common/run_command.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <common/run_command.h>
108

src/common/settings.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
#include <common/settings.h>
66

7-
#if defined(HAVE_CONFIG_H)
8-
#include <config/bitcoin-config.h>
9-
#endif
7+
#include <config/bitcoin-config.h> // IWYU pragma: keep
108

119
#include <tinyformat.h>
1210
#include <univalue.h>

src/common/system.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

6-
#if defined(HAVE_CONFIG_H)
7-
#include <config/bitcoin-config.h>
8-
#endif
6+
#include <config/bitcoin-config.h> // IWYU pragma: keep
97

108
#include <common/system.h>
119

src/common/system.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
#ifndef BITCOIN_COMMON_SYSTEM_H
77
#define BITCOIN_COMMON_SYSTEM_H
88

9-
#if defined(HAVE_CONFIG_H)
10-
#include <config/bitcoin-config.h>
11-
#endif
9+
#include <config/bitcoin-config.h> // IWYU pragma: keep
1210

1311
#include <cstdint>
1412
#include <string>

src/crypto/sha256.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <crypto/sha256.h>
108
#include <crypto/common.h>

src/httpserver.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <httpserver.h>
108

src/init.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

6-
#if defined(HAVE_CONFIG_H)
7-
#include <config/bitcoin-config.h>
8-
#endif
6+
#include <config/bitcoin-config.h> // IWYU pragma: keep
97

108
#include <init.h>
119

src/init/common.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <clientversion.h>
108
#include <common/args.h>

src/mapport.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <mapport.h>
108

src/net.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

6-
#if defined(HAVE_CONFIG_H)
7-
#include <config/bitcoin-config.h>
8-
#endif
6+
#include <config/bitcoin-config.h> // IWYU pragma: keep
97

108
#include <net.h>
119

src/netbase.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

6-
#if defined(HAVE_CONFIG_H)
7-
#include <config/bitcoin-config.h>
8-
#endif
6+
#include <config/bitcoin-config.h> // IWYU pragma: keep
97

108
#include <netbase.h>
119

src/node/interfaces.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@
5252
#include <validationinterface.h>
5353
#include <warnings.h>
5454

55-
#if defined(HAVE_CONFIG_H)
56-
#include <config/bitcoin-config.h>
57-
#endif
55+
#include <config/bitcoin-config.h> // IWYU pragma: keep
5856

5957
#include <any>
6058
#include <memory>

src/node/kernel_notifications.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
#include <node/kernel_notifications.h>
66

7-
#if defined(HAVE_CONFIG_H)
8-
#include <config/bitcoin-config.h>
9-
#endif
7+
#include <config/bitcoin-config.h> // IWYU pragma: keep
108

119
#include <chain.h>
1210
#include <common/args.h>

src/qt/bitcoin.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <qt/bitcoin.h>
108

src/qt/bitcoin.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
#ifndef BITCOIN_QT_BITCOIN_H
66
#define BITCOIN_QT_BITCOIN_H
77

8-
#if defined(HAVE_CONFIG_H)
9-
#include <config/bitcoin-config.h>
10-
#endif
8+
#include <config/bitcoin-config.h> // IWYU pragma: keep
119

1210
#include <interfaces/node.h>
1311
#include <qt/initexecutor.h>

src/qt/bitcoingui.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <qt/bitcoingui.h>
108

src/qt/bitcoingui.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
#ifndef BITCOIN_QT_BITCOINGUI_H
66
#define BITCOIN_QT_BITCOINGUI_H
77

8-
#if defined(HAVE_CONFIG_H)
9-
#include <config/bitcoin-config.h>
10-
#endif
8+
#include <config/bitcoin-config.h> // IWYU pragma: keep
119

1210
#include <qt/bitcoinunits.h>
1311
#include <qt/clientmodel.h>

src/qt/clientmodel.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <qt/clientmodel.h>
108

src/qt/createwalletdialog.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <interfaces/node.h>
108
#include <qt/createwalletdialog.h>

src/qt/guiutil.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <qt/guiutil.h>
108

src/qt/intro.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <chainparams.h>
108
#include <qt/intro.h>

src/qt/modaloverlay.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <qt/modaloverlay.h>
108
#include <qt/forms/ui_modaloverlay.h>

src/qt/notificator.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#if defined(HAVE_CONFIG_H)
6-
#include <config/bitcoin-config.h>
7-
#endif
5+
#include <config/bitcoin-config.h> // IWYU pragma: keep
86

97
#include <qt/notificator.h>
108

src/qt/notificator.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
#ifndef BITCOIN_QT_NOTIFICATOR_H
66
#define BITCOIN_QT_NOTIFICATOR_H
77

8-
#if defined(HAVE_CONFIG_H)
9-
#include <config/bitcoin-config.h>
10-
#endif
8+
#include <config/bitcoin-config.h> // IWYU pragma: keep
119

1210
#include <QIcon>
1311
#include <QObject>

0 commit comments

Comments
 (0)