nonnull
Nonnull refers to a nullability annotation used in some programming languages, notably Objective-C and C, to indicate that a pointer or return value must not be null. It is part of a broader set that also includes nullable and null_unspecified. These annotations help static analysis tools detect potential null dereferences and assist with interoperability with Swift, where nullability affects whether a value is imported as an optional.
In Objective-C, nullability annotations are applied to pointer types and can be combined with macros that control
Beyond Objective-C, the term also appears in C/C++ contexts via the Clang/GCC attribute __attribute__((nonnull)) that can
Nullability annotations are primarily a development-time aid rather than runtime checks. They do not automatically enforce
See also: nullability, nullable, nonnull in various languages, Swift interoperability, static analysis, ARC.