3 ms·
There's two similar but distinct function attributes for nullability. One affects codegen, one affects diagnostics only.
by ndesaulniers 2y ago
There's two similar but distinct function attributes for nullability. One affects codegen, one affects diagnostics only.
- ryao 2y agoWhich are those? I only know about nonnull, nonnull_if_nonzero and returns_nonnull: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attribute...