Home | History | Annotate | Download | only in SemaObjC

Lines Matching full:warning

9 int f1(int x); //  no warning
14 int f6(NSObject *x) __attribute__ ((nonnull (1))); // no-warning
15 int f7(NSObject *x) __attribute__ ((nonnull)); // no-warning
34 func1(0, cp2, i1); // expected-warning {{null passed to a callee that requires a non-null argument}}
35 func1(cp1, 0, i1); // expected-warning {{null passed to a callee that requires a non-null argument}}
39 func3(0, i2, cp3, i3); // expected-warning {{null passed to a callee that requires a non-null argument}}
40 func3(cp3, i2, 0, i3); // expected-warning {{null passed to a callee that requires a non-null argument}}
42 func4(0, cp1); // expected-warning {{null passed to a callee that requires a non-null argument}}
43 func4(cp1, 0); // expected-warning {{null passed to a callee that requires a non-null argument}}
47 func6((NSObject*) 0); // no-warning
48 func7((NSObject*) 0); // no-warning
51 void func5(int) NONNULL_ATTR; // no warning
64 void _dispatch_queue_push_list(dispatch_object_t _head); // no warning
67 _dispatch_queue_push_list(0); // expected-warning {{null passed to a callee that requires a non-null argument}}
68 _dispatch_queue_push_list(_head._do); // no warning
77 - (void*)returnsCNonNull __attribute__((returns_nonnull)); // no-warning
78 - (id)returnsObjCNonNull __attribute__((returns_nonnull)); // no-warning
79 - (int)returnsIntNonNull __attribute__((returns_nonnull)); // expected-warning {{'returns_nonnull' attribute only applies to return values that are pointers}}
94 [object doSomethingWithNonNullPointer:NULL:1:NULL]; // expected-warning 2 {{null passed to a callee that requires a non-null argument}}
95 [object doSomethingWithNonNullPointer:vp:1:NULL]; // expected-warning {{null passed to a callee that requires a non-null argument}}
96 [NSObject doSomethingClassyWithNonNullPointer:NULL]; // expected-warning {{null passed to a callee that requires a non-null argument}}
97 DoSomethingNotNull(NULL); // expected-warning {{null passed to a callee that requires a non-null argument}}
101 return 0; // expected-warning {{null returned from method that requires a non-null return value}}
107 - (void) doNotPassNullParameterNonPointerArg:(int)__attribute__((nonnull))x; // expected-warning {{'nonnull' attribute only applies to pointer arguments}}
109 - (void) doNotPassNullParameterArgIndex:(id)__attribute__((nonnull(1)))x; // expected-warning {{'nonnull' attribute when used on parameters takes no arguments}}
114 [f doNotPassNullParameter:0]; // expected-warning {{null passed to a callee that requires a non-null argument}}
115 [f doNotPassNullParameterArgIndex:0]; // no-warning
116 [f doNotPassNullOnMethod:0]; // expected-warning {{null passed to a callee that requires a non-null argument}}
121 g(0); // expected-warning{{null passed to a callee that requires a non-null argument}}
124 PR18795(0); // expected-warning{{null passed to a callee that requires a non-null argument}}