enum CXTypeNullabilityKind
Declared at: clang/include/clang-c/Index.h:3932
Enumerators
Name | Value | Comment |
---|---|---|
CXTypeNullability_NonNull | 0 | Values of this type can never be null. |
CXTypeNullability_Nullable | 1 | Values of this type can be null. |
CXTypeNullability_Unspecified | 2 | Whether 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_Invalid | 3 | Nullability is not applicable to this type. |
CXTypeNullability_NullableResult | 4 | Generally 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. |