Skip to content

Commit

Permalink
more clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
dmah42 committed Jan 13, 2025
1 parent a852fa6 commit f5858d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/check.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class CheckHandler {
#pragma warning(disable : 4722)
#endif
BENCHMARK_NORETURN ~CheckHandler() BENCHMARK_NOEXCEPT_OP(false) {
log_ << std::endl;
log_ << '\n';
CallAbortHandler();
}
#if defined(COMPILER_MSVC)
Expand Down
2 changes: 1 addition & 1 deletion src/colorprint.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <string>

namespace benchmark {
enum LogColor {
enum LogColor : uint8_t {
COLOR_DEFAULT,
COLOR_RED,
COLOR_GREEN,
Expand Down
6 changes: 3 additions & 3 deletions test/output_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define SET_SUBSTITUTIONS(...) \
int CONCAT(dummy, __LINE__) = ::SetSubstitutions(__VA_ARGS__)

enum MatchRules {
enum MatchRules uint8_t {
MR_Default, // Skip non-matching lines until a match is found.
MR_Next, // Match must occur on the next line.
MR_Not // No line between the current position and the next match matches
Expand All @@ -37,7 +37,7 @@ struct TestCase {
std::shared_ptr<benchmark::Regex> regex;
};

enum TestCaseID {
enum TestCaseID uint8_t {
TC_ConsoleOut,
TC_ConsoleErr,
TC_JSONOut,
Expand Down Expand Up @@ -101,7 +101,7 @@ struct Results {

double NumIterations() const;

typedef enum { kCpuTime, kRealTime } BenchmarkTime;
typedef enum : uint8_t { kCpuTime, kRealTime } BenchmarkTime;

// get cpu_time or real_time in seconds
double GetTime(BenchmarkTime which) const;
Expand Down

0 comments on commit f5858d9

Please sign in to comment.