Skip to content

Commit

Permalink
more clang tidy cleanups (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominichamon committed Jul 14, 2017
1 parent e8fc2a2 commit 5b7683f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions include/benchmark/benchmark.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,16 +382,17 @@ namespace internal {
class ThreadTimer;
class ThreadManager;

enum ReportMode
#if defined(BENCHMARK_HAS_CXX11)
enum ReportMode : unsigned {
: unsigned
#else
enum ReportMode {
#endif
{
RM_Unspecified, // The mode has not been manually specified
RM_Default, // The mode is user-specified as default.
RM_ReportAggregatesOnly
};
}
} // namespace internal

// State is passed to a running Benchmark and contains state for the
// benchmark to use.
Expand Down Expand Up @@ -815,7 +816,7 @@ class LambdaBenchmark : public Benchmark {
};
#endif

} // end namespace internal
} // namespace internal

inline internal::Benchmark* RegisterBenchmark(const char* name,
internal::Function* fn) {
Expand Down Expand Up @@ -867,7 +868,7 @@ class Fixture : public internal::Benchmark {
virtual void BenchmarkCase(State&) = 0;
};

} // namespace internal
} // namespace benchmark

// ------------------------------------------------------
// Macro to register benchmarks
Expand Down
2 changes: 1 addition & 1 deletion src/csv_reporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ std::vector<std::string> elements = {
"name", "iterations", "real_time", "cpu_time",
"time_unit", "bytes_per_second", "items_per_second", "label",
"error_occurred", "error_message"};
}
} // namespace

bool CSVReporter::ReportContext(const Context& context) {
PrintBasicContext(&GetErrorStream(), context);
Expand Down

0 comments on commit 5b7683f

Please sign in to comment.