[clang] [clang][NFC] Annotate `Type` bit-fields with `clang::preferred_type` (PR #70349)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 27 07:32:44 PDT 2023


================
@@ -49,7 +49,7 @@ struct ExprDependenceScope {
 using ExprDependence = ExprDependenceScope::ExprDependence;
 
 struct TypeDependenceScope {
-  enum TypeDependence : uint8_t {
+  enum TypeDependence : unsigned {
----------------
erichkeane wrote:

>>My preferred solution would be to make -Wbitfield-type less aggressive and not change the underlying types of enums is this patch.

Yeah, this I think is my preference.  

https://github.com/llvm/llvm-project/pull/70349


More information about the cfe-commits mailing list