mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-21 12:56:11 +01:00
Cleanup clang-tidy warning about enum sizes
This commit is contained in:
parent
9c5a4cf44e
commit
119a7bbe53
@ -34,7 +34,7 @@ Checks: >-
|
|||||||
-modernize-pass-by-value,
|
-modernize-pass-by-value,
|
||||||
|
|
||||||
performance-*,
|
performance-*,
|
||||||
-performance-enum-size,
|
performance-enum-size,
|
||||||
|
|
||||||
portability-*,
|
portability-*,
|
||||||
|
|
||||||
@ -49,6 +49,7 @@ Checks: >-
|
|||||||
-readability-implicit-bool-conversion,
|
-readability-implicit-bool-conversion,
|
||||||
-readability-isolate-declaration,
|
-readability-isolate-declaration,
|
||||||
-readability-magic-numbers,
|
-readability-magic-numbers,
|
||||||
|
-readability-math-missing-parentheses, #no, 'a + B * C' obeying math rules is not confusing,
|
||||||
-readability-named-parameter,
|
-readability-named-parameter,
|
||||||
-readability-qualified-auto,
|
-readability-qualified-auto,
|
||||||
-readability-redundant-access-specifiers,
|
-readability-redundant-access-specifiers,
|
||||||
|
@ -22,7 +22,10 @@ namespace Detail {
|
|||||||
const int hexThreshold = 255;
|
const int hexThreshold = 255;
|
||||||
|
|
||||||
struct Endianness {
|
struct Endianness {
|
||||||
enum Arch { Big, Little };
|
enum Arch : uint8_t {
|
||||||
|
Big,
|
||||||
|
Little
|
||||||
|
};
|
||||||
|
|
||||||
static Arch which() {
|
static Arch which() {
|
||||||
int one = 1;
|
int one = 1;
|
||||||
|
@ -214,7 +214,7 @@ struct RowBreak {};
|
|||||||
struct OutputFlush {};
|
struct OutputFlush {};
|
||||||
|
|
||||||
class Duration {
|
class Duration {
|
||||||
enum class Unit {
|
enum class Unit : uint8_t {
|
||||||
Auto,
|
Auto,
|
||||||
Nanoseconds,
|
Nanoseconds,
|
||||||
Microseconds,
|
Microseconds,
|
||||||
@ -286,7 +286,10 @@ public:
|
|||||||
};
|
};
|
||||||
} // end anon namespace
|
} // end anon namespace
|
||||||
|
|
||||||
enum class Justification { Left, Right };
|
enum class Justification : uint8_t {
|
||||||
|
Left,
|
||||||
|
Right
|
||||||
|
};
|
||||||
|
|
||||||
struct ColumnInfo {
|
struct ColumnInfo {
|
||||||
std::string name;
|
std::string name;
|
||||||
|
Loading…
Reference in New Issue
Block a user