@@ -774,7 +774,7 @@ class State {
774
774
bool finished_;
775
775
bool error_occurred_;
776
776
777
- private: // items we don't need on the first cache line
777
+ // items we don't need on the first cache line
778
778
std::vector<int64_t > range_;
779
779
780
780
int64_t complexity_n_;
@@ -1054,7 +1054,8 @@ class Benchmark {
1054
1054
Benchmark* Complexity (BigOFunc* complexity);
1055
1055
1056
1056
// Add this statistics to be computed over all the values of benchmark run
1057
- Benchmark* ComputeStatistics (std::string name, StatisticsFunc* statistics,
1057
+ Benchmark* ComputeStatistics (const std::string& name,
1058
+ StatisticsFunc* statistics,
1058
1059
StatisticUnit unit = kTime );
1059
1060
1060
1061
// Support for running multiple copies of the same benchmark concurrently
@@ -1169,8 +1170,7 @@ class LambdaBenchmark : public Benchmark {
1169
1170
1170
1171
LambdaBenchmark (LambdaBenchmark const &) = delete ;
1171
1172
1172
- private:
1173
- template <class Lam >
1173
+ template <class Lam > // NOLINTNEXTLINE(readability-redundant-declaration)
1174
1174
friend Benchmark* ::benchmark::RegisterBenchmark(const char *, Lam&&);
1175
1175
1176
1176
Lambda lambda_;
@@ -1338,7 +1338,7 @@ class Fixture : public internal::Benchmark {
1338
1338
#define BENCHMARK_PRIVATE_DECLARE_F (BaseClass, Method ) \
1339
1339
class BaseClass ##_##Method##_Benchmark : public BaseClass { \
1340
1340
public: \
1341
- BaseClass##_##Method##_Benchmark() : BaseClass() { \
1341
+ BaseClass##_##Method##_Benchmark() { \
1342
1342
this ->SetName (#BaseClass " /" #Method); \
1343
1343
} \
1344
1344
\
@@ -1349,7 +1349,7 @@ class Fixture : public internal::Benchmark {
1349
1349
#define BENCHMARK_TEMPLATE1_PRIVATE_DECLARE_F (BaseClass, Method, a ) \
1350
1350
class BaseClass ##_##Method##_Benchmark : public BaseClass<a> { \
1351
1351
public: \
1352
- BaseClass##_##Method##_Benchmark() : BaseClass<a>() { \
1352
+ BaseClass##_##Method##_Benchmark() { \
1353
1353
this ->SetName (#BaseClass " <" #a " >/" #Method); \
1354
1354
} \
1355
1355
\
@@ -1360,7 +1360,7 @@ class Fixture : public internal::Benchmark {
1360
1360
#define BENCHMARK_TEMPLATE2_PRIVATE_DECLARE_F (BaseClass, Method, a, b ) \
1361
1361
class BaseClass ##_##Method##_Benchmark : public BaseClass<a, b> { \
1362
1362
public: \
1363
- BaseClass##_##Method##_Benchmark() : BaseClass<a, b>() { \
1363
+ BaseClass##_##Method##_Benchmark() { \
1364
1364
this ->SetName (#BaseClass " <" #a " ," #b " >/" #Method); \
1365
1365
} \
1366
1366
\
@@ -1372,7 +1372,7 @@ class Fixture : public internal::Benchmark {
1372
1372
#define BENCHMARK_TEMPLATE_PRIVATE_DECLARE_F (BaseClass, Method, ...) \
1373
1373
class BaseClass ##_##Method##_Benchmark : public BaseClass<__VA_ARGS__> { \
1374
1374
public: \
1375
- BaseClass##_##Method##_Benchmark() : BaseClass<__VA_ARGS__>() { \
1375
+ BaseClass##_##Method##_Benchmark() { \
1376
1376
this ->SetName (#BaseClass " <" #__VA_ARGS__ " >/" #Method); \
1377
1377
} \
1378
1378
\
@@ -1539,7 +1539,6 @@ class BenchmarkReporter {
1539
1539
complexity_n(0 ),
1540
1540
report_big_o(false ),
1541
1541
report_rms(false ),
1542
- counters(),
1543
1542
memory_result(NULL ),
1544
1543
allocs_per_iter(0.0 ) {}
1545
1544
@@ -1676,10 +1675,7 @@ class ConsoleReporter : public BenchmarkReporter {
1676
1675
OO_Defaults = OO_ColorTabular
1677
1676
};
1678
1677
explicit ConsoleReporter (OutputOptions opts_ = OO_Defaults)
1679
- : output_options_(opts_),
1680
- name_field_width_(0 ),
1681
- prev_counters_(),
1682
- printed_header_(false ) {}
1678
+ : output_options_(opts_), name_field_width_(0 ), printed_header_(false ) {}
1683
1679
1684
1680
virtual bool ReportContext (const Context& context) BENCHMARK_OVERRIDE;
1685
1681
virtual void ReportRuns (const std::vector<Run>& reports) BENCHMARK_OVERRIDE;
0 commit comments