Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
5b2c0866
Commit
5b2c0866
authored
Dec 03, 2017
by
Louis Dionne
Committed by
Eric
Dec 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enforce using a semicolon after BENCHMARK_MAIN to remove compiler warnings (#495)
parent
0bbaeeaf
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
10 additions
and
9 deletions
+10
-9
benchmark.h
include/benchmark/benchmark.h
+2
-1
basic_test.cc
test/basic_test.cc
+1
-1
benchmark_test.cc
test/benchmark_test.cc
+1
-1
cxx03_test.cc
test/cxx03_test.cc
+1
-1
fixture_test.cc
test/fixture_test.cc
+1
-1
map_test.cc
test/map_test.cc
+1
-1
multiple_ranges_test.cc
test/multiple_ranges_test.cc
+1
-1
options_test.cc
test/options_test.cc
+1
-1
templated_fixture_test.cc
test/templated_fixture_test.cc
+1
-1
No files found.
include/benchmark/benchmark.h
View file @
5b2c0866
...
...
@@ -1146,7 +1146,8 @@ class Fixture : public internal::Benchmark {
::benchmark::Initialize(&argc, argv); \
if (::benchmark::ReportUnrecognizedArguments(argc, argv)) return 1; \
::benchmark::RunSpecifiedBenchmarks(); \
}
} \
int main(int, char**)
// ------------------------------------------------------
...
...
test/basic_test.cc
View file @
5b2c0866
...
...
@@ -115,4 +115,4 @@ void BM_RangedFor(benchmark::State& state) {
}
BENCHMARK
(
BM_RangedFor
);
BENCHMARK_MAIN
()
BENCHMARK_MAIN
()
;
test/benchmark_test.cc
View file @
5b2c0866
...
...
@@ -241,4 +241,4 @@ BENCHMARK(BM_DenseThreadRanges)->Arg(1)->DenseThreadRange(1, 3);
BENCHMARK
(
BM_DenseThreadRanges
)
->
Arg
(
2
)
->
DenseThreadRange
(
1
,
4
,
2
);
BENCHMARK
(
BM_DenseThreadRanges
)
->
Arg
(
3
)
->
DenseThreadRange
(
5
,
14
,
3
);
BENCHMARK_MAIN
()
BENCHMARK_MAIN
()
;
test/cxx03_test.cc
View file @
5b2c0866
...
...
@@ -60,4 +60,4 @@ void BM_counters(benchmark::State& state) {
}
BENCHMARK
(
BM_counters
);
BENCHMARK_MAIN
()
BENCHMARK_MAIN
()
;
test/fixture_test.cc
View file @
5b2c0866
...
...
@@ -46,4 +46,4 @@ BENCHMARK_DEFINE_F(MyFixture, Bar)(benchmark::State& st) {
BENCHMARK_REGISTER_F
(
MyFixture
,
Bar
)
->
Arg
(
42
);
BENCHMARK_REGISTER_F
(
MyFixture
,
Bar
)
->
Arg
(
42
)
->
ThreadPerCpu
();
BENCHMARK_MAIN
()
BENCHMARK_MAIN
()
;
test/map_test.cc
View file @
5b2c0866
...
...
@@ -54,4 +54,4 @@ BENCHMARK_DEFINE_F(MapFixture, Lookup)(benchmark::State& state) {
}
BENCHMARK_REGISTER_F
(
MapFixture
,
Lookup
)
->
Range
(
1
<<
3
,
1
<<
12
);
BENCHMARK_MAIN
()
BENCHMARK_MAIN
()
;
test/multiple_ranges_test.cc
View file @
5b2c0866
...
...
@@ -71,4 +71,4 @@ static void BM_MultipleRanges(benchmark::State& st) {
}
BENCHMARK
(
BM_MultipleRanges
)
->
Ranges
({{
5
,
5
},
{
6
,
6
}});
BENCHMARK_MAIN
()
BENCHMARK_MAIN
()
;
test/options_test.cc
View file @
5b2c0866
...
...
@@ -62,4 +62,4 @@ void BM_explicit_iteration_count(benchmark::State& state) {
}
BENCHMARK
(
BM_explicit_iteration_count
)
->
Iterations
(
42
);
BENCHMARK_MAIN
()
BENCHMARK_MAIN
()
;
test/templated_fixture_test.cc
View file @
5b2c0866
...
...
@@ -25,4 +25,4 @@ BENCHMARK_TEMPLATE_DEFINE_F(MyFixture, Bar, double)(benchmark::State& st) {
}
BENCHMARK_REGISTER_F
(
MyFixture
,
Bar
);
BENCHMARK_MAIN
()
BENCHMARK_MAIN
()
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment