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

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 26 22:59:36 PDT 2023


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

In this particular case, width of bit-field is not hardcoded, but derived from enumerators via `llvm::BitWidth<TypeDependence>`

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


More information about the cfe-commits mailing list