Skip to content

Commit a5179b6

Browse files
committed
[Trivial] ensure minimal header conventions
backports bitcoin/bitcoin@214de7e - ensure header namespaces and end comments are correct - add missing header end comments - ensure minimal formatting (add newlines etc.)
1 parent 8607d6b commit a5179b6

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

src/bench/bench.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// Copyright (c) 2015 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
45
#include "bench.h"
6+
57
#include <iostream>
68
#include <sys/time.h>
79

src/bench/bench.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
// Copyright (c) 2015 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4-
#ifndef BITCOIN_BENCH_H
5-
#define BITCOIN_BENCH_H
4+
5+
#ifndef BITCOIN_BENCH_BENCH_H
6+
#define BITCOIN_BENCH_BENCH_H
7+
8+
#include <map>
9+
#include <string>
10+
11+
#include <boost/function.hpp>
12+
#include <boost/preprocessor/cat.hpp>
13+
#include <boost/preprocessor/stringize.hpp>
614

715
// Simple micro-benchmarking framework; API mostly matches a subset of the Google Benchmark
816
// framework (see https://github.com/google/benchmark)
@@ -24,12 +32,6 @@ BENCHMARK(CODE_TO_TIME);
2432
*/
2533

2634

27-
#include <boost/function.hpp>
28-
#include <boost/preprocessor/cat.hpp>
29-
#include <boost/preprocessor/stringize.hpp>
30-
#include <map>
31-
#include <string>
32-
3335
namespace benchmark {
3436

3537
class State {
@@ -65,4 +67,4 @@ namespace benchmark {
6567
#define BENCHMARK(n) \
6668
benchmark::BenchRunner BOOST_PP_CAT(bench_, BOOST_PP_CAT(__LINE__, n))(BOOST_PP_STRINGIZE(n), n);
6769

68-
#endif // BITCOIN_BENCH_H
70+
#endif // BITCOIN_BENCH_BENCH_H

src/memusage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ static inline size_t DynamicUsage(const X& x)
116116

117117
}
118118

119-
#endif
119+
#endif // BITCOIN_MEMUSAGE_H

0 commit comments

Comments
 (0)