enum class NullabilityKind

Description

Describes the nullability of a particular type.

Declared at: clang/include/clang/Basic/Specifiers.h:317

Enumerators

NameValueComment
NonNull0Values of this type can never be null.
Nullable1Values of this type can be null.
Unspecified2Whether values of this type can be null is (explicitly) unspecified. This captures a (fairly rare) case where we can't conclude anything about the nullability of the type even though it has been considered.
NullableResult3Whether values of this type can be null is (explicitly) unspecified. This captures a (fairly rare) case where we can't conclude anything about the nullability of the type even though it has been considered.