Home | History | Annotate | Download | only in analyzer

Lines Matching full:nonnull

15 - 'p' gets implicitly converted into nonnull pointer, for example, we are passing it to a function that takes a nonnull parameter.
29 2) nonnull
32 - Dereferencing a nonnull, or sending message to it is ok.
33 - Converting nonnull to nullable is Ok.
34 - When there is an explicit cast from nonnull to nullable I will trust the cast (it is probable there for a reason, because this cast does not suppress any warnings or errors).
54 - Even though the method might return a nonnull pointer, when it was sent to a nullable pointer the return type will be nullable.
56 - Sending a message to a unspecified or nonnull pointer
63 A symbol may need to be treated differently inside an inlined body. For example, consider these conversions from nonnull to nullable in presence of inlining::
73 With no special treatment, when the takesNullable is inlined the analyzer will not warn when the obj symbol is dereferenced. One solution for this is to reanalyze takesNullable as a top level function to get possible violations. The alternative method, deducing nullability information from the arguments after inlining is not robust enough (for example there might be more parameters with different nullability, but in the given path the two parameters might end up being the same symbol or there can be nested functions that take different view of the nullability of the same symbol). So the symbol will remain nonnull to avoid false positives but the functions that takes nullable parameters will be analyzed separately as well without inlining.
88 - The checker would track memory regions, and to each relevant region a qualifier information would be attached which is either nullable, nonnull or null unspecified (or contradicted to suppress warnings for a specific region).
89 - On a branch, where a nullable pointer is known to be non null, the checker treat it as a same way as a pointer annotated as nonnull.
90 - When there is an explicit cast from a null unspecified to either nonnull or nullable I will trust the cast.