================
----------------
JDevlieghere wrote:
Would it be easier to give the enum an fixed underlying type
```suggestion
enum ValueType : uint32_t {
```
With a fixed underlying type, the enum's range becomes the full range of the
underlying type and any bitmasked value is considered in range.
Then you can do something like:
```
static constexpr unsigned ValueTypeSyntheticMask = 0x20;
```
which doesn't require having to update all the exhaustive switches.
https://github.com/llvm/llvm-project/pull/195540
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits