enum CXTypeNullabilityKind

Declared at: clang/include/clang-c/Index.h:3932

Enumerators

NameValueComment
CXTypeNullability_NonNull0Values of this type can never be null.
CXTypeNullability_Nullable1Values of this type can be null.
CXTypeNullability_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.
CXTypeNullability_Invalid3Nullability is not applicable to this type.
CXTypeNullability_NullableResult4Generally behaves like Nullable, except when used in a block parameter that was imported into a swift async method. There, swift will assume that the parameter can get null even if no error occurred. _Nullable parameters are assumed to only get null on error.