enum class NullabilityKind
Description
Describes the nullability of a particular type.
Declared at: clang/include/clang/Basic/Specifiers.h:317
Enumerators
Name | Value | Comment |
---|---|---|
NonNull | 0 | Values of this type can never be null. |
Nullable | 1 | Values of this type can be null. |
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. |
NullableResult | 3 | 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. |