Endilll wrote:

I'm ignoring signed/unsigned mismatch as @erichkeane and @AaronBallman 
suggested. The only outstanding aspect is the following diagnostic I added 
today and haven't received feedback on:
```cpp
  [[clang::preferred_type(bool)]] unsigned b4 : 1;
  [[clang::preferred_type(bool)]] unsigned b5 : 2;
  // expected-warning@-1 {{bit-field that holds a boolean value should have 
width of 1 instead of 2}}
```

https://github.com/llvm/llvm-project/pull/69104
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to