[clang] [Clang] Consider preferred_type in bitfield warnings (#116760) (PR #116785)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 12 06:04:20 PDT 2025
================
@@ -0,0 +1,414 @@
+// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -fsyntax-only -verify -std=c++23 -Wno-unused-value -Wno-unused-but-set-variable
+// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -fsyntax-only -verify=expected,bitfieldwarnings -std=c++23 -Wno-unused-value -Wno-unused-but-set-variable -Wbitfield-width -Wbitfield-enum-conversion
+
+// This is more complex than the C version because the user can specify the
----------------
AaronBallman wrote:
C23 allows a fixed underlying type, would it make sense to combine more of these tests together and test in C23 mode?
https://github.com/llvm/llvm-project/pull/116785
More information about the cfe-commits
mailing list