Lines Matching full:nonnull
12 __attribute__((nonnull(1))) void Class_init(Instance this, char *str) {
22 void foo(const char *str) __attribute__((nonnull("foo"))); // expected-error{{'nonnull' attribute requires parameter 1 to be an integer constant}}
23 void bar(int i) __attribute__((nonnull(1))); // expected-warning {{'nonnull' attribute only applies to pointer arguments}} expected-warning {{'nonnull' attribute applied to function with no pointer arguments}}
25 void baz(__attribute__((nonnull)) const char *str);
26 void baz2(__attribute__((nonnull(1))) const char *str); // expected-warning {{'nonnull' attribute when used on parameters takes no arguments}}
27 void baz3(__attribute__((nonnull)) int x); // expected-warning {{'nonnull' attribute only applies to pointer arguments}}
39 int i __attribute__((nonnull)); // expected-warning {{'nonnull' attribute only applies to functions, methods, and parameters}}
49 void PR18795(int (*g)(const char *h, ...) __attribute__((nonnull(1))) __attribute__((nonnull))) {
56 void vararg1(int n, ...) __attribute__((nonnull(2)));
64 void vararg2(int n, ...) __attribute__((nonnull, nonnull, nonnull));
71 void vararg3(int n, ...) __attribute__((nonnull, nonnull(2), nonnull(3)));
79 void redecl(void *, void *) __attribute__((nonnull(1)));
80 void redecl(void *, void *) __attribute__((nonnull(2)));
92 if (pointer == NULL) { // expected-warning {{comparison of nonnull parameter 'pointer' equal to a null pointer is false on first encounter}}
104 if (pv == NULL) {} // expected-warning {{comparison of nonnull parameter 'pv' equal to a null pointer is false on first encounter}}
108 int another_evil_nonnull_func(int* pointer, char ch, void * pv) __attribute__((nonnull(1, 3)));
110 if (pointer == NULL) { // expected-warning {{comparison of nonnull parameter 'pointer' equal to a null pointer is false on first encounter}}
122 if (pv == NULL) {} // expected-warning {{comparison of nonnull parameter 'pv' equal to a null pointer is false on first encounter}}
135 if (pointer) { // expected-warning {{nonnull parameter 'pointer' will evaluate to 'true' on first encounter}}
144 void pr21668_1(__attribute__((nonnull)) const char *p, const char *s) {
145 if (p) // expected-warning {{nonnull parameter 'p' will evaluate to 'true' on first encounter}}
151 void pr21668_2(__attribute__((nonnull)) const char *p) {