Skip to content

Commit 00d0ff2

Browse files
committed
apply fixes / formatting
1 parent e0115d8 commit 00d0ff2

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/starter.bench.cc

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
#include <benchmark/benchmark.h>
2+
23
#include <iostream>
34

4-
static void BM_SomeFunction(benchmark::State& state) {
5+
namespace {
6+
void BM_SomeFunction(benchmark::State& state) {
57
// Perform setup here
6-
for (auto _ : state) {
8+
for (auto _: state) {
9+
(void)_;
710
// This code gets timed
811
std::cout << "0";
912
}
1013
}
14+
} //namespace
1115
// Register the function as a benchmark
1216
BENCHMARK(BM_SomeFunction);
1317
// Run the benchmark

src/starter.cc

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
auto main() -> int {
2-
return 0;
3-
}
1+
auto main() -> int { return 0; }

src/starter.test.cc

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
#include <gtest/gtest.h>
22

3-
TEST(startertest, basicAssertions) {
4-
EXPECT_EQ(7 * 6, 42);
5-
}
3+
TEST(startertest, basicAssertions) { EXPECT_EQ(7 * 6, 42); }

0 commit comments

Comments
 (0)