Skip to content

Commit fac5c37

Browse files
author
MarcoFalke
committed
scripted-diff: Sort test includes
-BEGIN VERIFY SCRIPT- # Mark all lines with #includes sed -i --regexp-extended -e 's/(#include <.*>)/\1 /g' $(git grep -l '#include' ./src/bench/ ./src/test ./src/wallet/test/) # Sort all marked lines git diff -U0 | ./contrib/devtools/clang-format-diff.py -p1 -i -v -END VERIFY SCRIPT-
1 parent d8dfcea commit fac5c37

Some content is hidden

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

59 files changed

+112
-113
lines changed

src/bench/bech32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#include <bech32.h>
88
#include <util/strencodings.h>
99

10-
#include <vector>
1110
#include <string>
11+
#include <vector>
1212

1313

1414
static void Bech32Encode(benchmark::State& state)

src/bench/bench.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
#ifndef BITCOIN_BENCH_BENCH_H
66
#define BITCOIN_BENCH_BENCH_H
77

8+
#include <chrono>
89
#include <functional>
910
#include <map>
1011
#include <string>
1112
#include <vector>
12-
#include <chrono>
1313

1414
#include <boost/preprocessor/cat.hpp>
1515
#include <boost/preprocessor/stringize.hpp>

src/bench/chacha_poly_aead.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#include <crypto/poly1305.h> // for the POLY1305_TAGLEN constant
99
#include <hash.h>
1010

11-
#include <limits>
1211
#include <assert.h>
12+
#include <limits>
1313

1414
/* Number of bytes to process per iteration */
1515
static constexpr uint64_t BUFFER_SIZE_TINY = 64;

src/bench/checkblock.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#include <bench/data.h>
77

88
#include <chainparams.h>
9-
#include <validation.h>
10-
#include <streams.h>
119
#include <consensus/validation.h>
10+
#include <streams.h>
11+
#include <validation.h>
1212

1313
// These are the two major time-sinks which happen after we have fully received
1414
// a block off the wire, but before we can relay the block on to peers using

src/bench/checkqueue.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#include <bench/bench.h>
6-
#include <util/system.h>
6+
#include <boost/thread/thread.hpp>
77
#include <checkqueue.h>
88
#include <prevector.h>
9-
#include <vector>
10-
#include <boost/thread/thread.hpp>
119
#include <random.h>
10+
#include <util/system.h>
11+
#include <vector>
1212

1313

1414
static const int MIN_CORES = 2;

src/bench/crypto_hash.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55

66
#include <bench/bench.h>
7-
#include <hash.h>
8-
#include <random.h>
9-
#include <uint256.h>
107
#include <crypto/ripemd160.h>
118
#include <crypto/sha1.h>
129
#include <crypto/sha256.h>
1310
#include <crypto/sha512.h>
1411
#include <crypto/siphash.h>
12+
#include <hash.h>
13+
#include <random.h>
14+
#include <uint256.h>
1515

1616
/* Number of bytes to hash per iteration */
1717
static const uint64_t BUFFER_SIZE = 1000*1000;

src/bench/duplicate_inputs.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <validation.h>
1212

1313

14-
1514
static void DuplicateInputs(benchmark::State& state)
1615
{
1716
const CScript SCRIPT_PUB{CScript(OP_TRUE)};

src/bench/merkle_root.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
#include <bench/bench.h>
66

7-
#include <uint256.h>
8-
#include <random.h>
97
#include <consensus/merkle.h>
8+
#include <random.h>
9+
#include <uint256.h>
1010

1111
static void MerkleRoot(benchmark::State& state)
1212
{

src/bench/rpc_blockchain.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
#include <bench/bench.h>
66
#include <bench/data.h>
77

8-
#include <validation.h>
9-
#include <streams.h>
108
#include <rpc/blockchain.h>
9+
#include <streams.h>
10+
#include <validation.h>
1111

1212
#include <univalue.h>
1313

src/test/addrman_tests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44
#include <addrman.h>
5-
#include <test/util/setup_common.h>
6-
#include <string>
75
#include <boost/test/unit_test.hpp>
6+
#include <string>
7+
#include <test/data/asmap.raw.h>
8+
#include <test/util/setup_common.h>
89
#include <util/asmap.h>
910
#include <util/string.h>
10-
#include <test/data/asmap.raw.h>
1111

1212
#include <hash.h>
1313
#include <netbase.h>

0 commit comments

Comments
 (0)