Unverified Commit 19026e23 by Dominic Hamon Committed by GitHub

fix clang-tidy warnings (#1195)

parent 94f845ec
......@@ -34,7 +34,7 @@ class EventQueue : public std::queue<std::string> {
}
};
static EventQueue* queue = new EventQueue;
EventQueue* queue = new EventQueue();
class NullReporter : public BenchmarkReporter {
public:
......@@ -60,7 +60,7 @@ class BenchmarkTest : public testing::Test {
}
};
static void BM_Match1(benchmark::State& state) {
void BM_Match1(benchmark::State& state) {
const int64_t arg = state.range(0);
for (auto _ : state) {
......
......@@ -5,7 +5,7 @@
#include "benchmark/benchmark.h"
#include "output_test.h"
void BM_Simple(benchmark::State& state) {
static void BM_Simple(benchmark::State& state) {
for (auto _ : state) {
benchmark::DoNotOptimize(state.iterations());
}
......@@ -13,7 +13,7 @@ void BM_Simple(benchmark::State& state) {
BENCHMARK(BM_Simple);
ADD_CASES(TC_JSONOut, {{"\"name\": \"BM_Simple\",$"}});
void CheckSimple(Results const& e) {
static void CheckSimple(Results const& e) {
CHECK_COUNTER_VALUE(e, double, "CYCLES", GT, 0);
CHECK_COUNTER_VALUE(e, double, "BRANCHES", GT, 0.0);
}
......
......@@ -6,7 +6,7 @@
// ------------------------ Testing Basic Output --------------------------- //
// ========================================================================= //
void BM_ExplicitRepetitions(benchmark::State& state) {
static void BM_ExplicitRepetitions(benchmark::State& state) {
for (auto _ : state) {
}
}
......@@ -105,7 +105,7 @@ ADD_CASES(TC_CSVOut,
// ------------------------ Testing Basic Output --------------------------- //
// ========================================================================= //
void BM_ImplicitRepetitions(benchmark::State& state) {
static void BM_ImplicitRepetitions(benchmark::State& state) {
for (auto _ : state) {
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment