mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Fix clang-tidy performance-enum-size warnings in headers
This commit is contained in:
parent
89ac0cb418
commit
f386deba94
76 changed files with 184 additions and 136 deletions
|
@ -59,7 +59,7 @@ public:
|
|||
} // namespace detail
|
||||
|
||||
// Zeek types.
|
||||
enum TypeTag {
|
||||
enum TypeTag : uint8_t {
|
||||
TYPE_VOID, // 0
|
||||
TYPE_BOOL, // 1
|
||||
TYPE_INT, // 2
|
||||
|
@ -91,9 +91,9 @@ extern const char* type_name(TypeTag t);
|
|||
|
||||
constexpr bool is_network_order(TypeTag tag) noexcept { return tag == TYPE_PORT; }
|
||||
|
||||
enum FunctionFlavor { FUNC_FLAVOR_FUNCTION, FUNC_FLAVOR_EVENT, FUNC_FLAVOR_HOOK };
|
||||
enum FunctionFlavor : uint8_t { FUNC_FLAVOR_FUNCTION, FUNC_FLAVOR_EVENT, FUNC_FLAVOR_HOOK };
|
||||
|
||||
enum InternalTypeTag : uint16_t {
|
||||
enum InternalTypeTag : uint8_t {
|
||||
TYPE_INTERNAL_VOID,
|
||||
TYPE_INTERNAL_INT,
|
||||
TYPE_INTERNAL_UNSIGNED,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue