Commit 5b7683f4 by Dominic Hamon Committed by GitHub

more clang tidy cleanups (#417)

parent e8fc2a2b
...@@ -382,16 +382,17 @@ namespace internal { ...@@ -382,16 +382,17 @@ namespace internal {
class ThreadTimer; class ThreadTimer;
class ThreadManager; class ThreadManager;
enum ReportMode
#if defined(BENCHMARK_HAS_CXX11) #if defined(BENCHMARK_HAS_CXX11)
enum ReportMode : unsigned { : unsigned
#else #else
enum ReportMode {
#endif #endif
{
RM_Unspecified, // The mode has not been manually specified RM_Unspecified, // The mode has not been manually specified
RM_Default, // The mode is user-specified as default. RM_Default, // The mode is user-specified as default.
RM_ReportAggregatesOnly RM_ReportAggregatesOnly
}; };
} } // namespace internal
// State is passed to a running Benchmark and contains state for the // State is passed to a running Benchmark and contains state for the
// benchmark to use. // benchmark to use.
...@@ -815,7 +816,7 @@ class LambdaBenchmark : public Benchmark { ...@@ -815,7 +816,7 @@ class LambdaBenchmark : public Benchmark {
}; };
#endif #endif
} // end namespace internal } // namespace internal
inline internal::Benchmark* RegisterBenchmark(const char* name, inline internal::Benchmark* RegisterBenchmark(const char* name,
internal::Function* fn) { internal::Function* fn) {
...@@ -867,7 +868,7 @@ class Fixture : public internal::Benchmark { ...@@ -867,7 +868,7 @@ class Fixture : public internal::Benchmark {
virtual void BenchmarkCase(State&) = 0; virtual void BenchmarkCase(State&) = 0;
}; };
} // namespace internal } // namespace benchmark
// ------------------------------------------------------ // ------------------------------------------------------
// Macro to register benchmarks // Macro to register benchmarks
......
...@@ -35,7 +35,7 @@ std::vector<std::string> elements = { ...@@ -35,7 +35,7 @@ std::vector<std::string> elements = {
"name", "iterations", "real_time", "cpu_time", "name", "iterations", "real_time", "cpu_time",
"time_unit", "bytes_per_second", "items_per_second", "label", "time_unit", "bytes_per_second", "items_per_second", "label",
"error_occurred", "error_message"}; "error_occurred", "error_message"};
} } // namespace
bool CSVReporter::ReportContext(const Context& context) { bool CSVReporter::ReportContext(const Context& context) {
PrintBasicContext(&GetErrorStream(), context); PrintBasicContext(&GetErrorStream(), context);
......
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