]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
clang-tidy : disable warning about performance enum size (#16127)
authorHaiyue Wang <redacted>
Mon, 22 Sep 2025 17:57:46 +0000 (01:57 +0800)
committerGitHub <redacted>
Mon, 22 Sep 2025 17:57:46 +0000 (19:57 +0200)
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

index 5bc63bc6e27b632a1ada1ee776f5ab560bddb243..803b8b46a32f3f4afb9d67edacd2cf01a295dbfb 100644 (file)
@@ -17,6 +17,7 @@ Checks: >
     clang-analyzer-*,
     -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
     performance-*,
+    -performance-enum-size,
     portability-*,
     -portability-simd-intrinsics,
     misc-*,