Fix clang-tidy performance-enum-size warnings in headers

This commit is contained in:
Tim Wojtulewicz 2025-06-09 17:06:52 -07:00
parent 89ac0cb418
commit f386deba94
76 changed files with 184 additions and 136 deletions

View file

@ -3,6 +3,7 @@
#pragma once
#include <sys/types.h>
#include <cstdint>
#include <iosfwd>
#include <string>
#include <string_view>
@ -103,7 +104,7 @@ public:
*/
std::string_view ToStdStringView() const;
enum render_style {
enum render_style : uint8_t {
ESC_NONE = 0,
ESC_ESC = (1 << 1), // '\' -> "\\"
ESC_QUOT = (1 << 2), // '"' -> "\"", ''' -> "\'"