From 351f3da39c85f59d581fc184f09283da7f099a3b Mon Sep 17 00:00:00 2001 From: Haiyue Wang Date: Tue, 23 Sep 2025 01:57:46 +0800 Subject: [PATCH] clang-tidy : disable warning about performance enum size (#16127) Disable 'performance-enum-size' checking: Enum 'llama_token_type' uses a larger base type ('unsigned int', size: 4 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the base type to reduce its size. --- .clang-tidy | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-tidy b/.clang-tidy index 5bc63bc6e2..803b8b46a3 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -17,6 +17,7 @@ Checks: > clang-analyzer-*, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, performance-*, + -performance-enum-size, portability-*, -portability-simd-intrinsics, misc-*,