bwendling wrote:

> @bwendling is there any plan / possibility for simple expressions (with no 
> side effects)? Like:
> 
> ```c
> struct libusb_bos_dev_capability_descriptor {
>       uint8_t  bLength;
>       uint8_t  bDescriptorType;
>       uint8_t  bDevCapabilityType;
>       uint8_t  dev_capability_data[] __attribute__((counted_by(bLength - 3)));
> };
> ```

Not right now. Apple is in the process of expanding the bounds checking code 
beyond checking only flexible array members. We will most likely follow their 
lead on `constexpr`-like expressions. But the utility of such a feature would 
need to be explored.

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

Reply via email to