fix clang-tidy warnings (#1195)

This commit is contained in:
Dominic Hamon 2021-06-29 11:06:53 +01:00 committed by GitHub
parent 94f845ec4f
commit 19026e232c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -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) {

View File

@ -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);
}

View File

@ -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) {
}
}