Home | History | Annotate | Download | only in Sema

Lines Matching defs:NULL

16   if (b == 0) {} // expected-warning {{comparison of array 'b' equal to a null pointer is always false}}
18 if (c.x == 0) {} // expected-warning {{comparison of array 'c.x' equal to a null pointer is always false}}
20 if (0 == str) {} // expected-warning {{comparison of array 'str' equal to a null pointer is always false}}
28 } else if (array != 0) { // expected-warning {{comparison of array 'array' not equal to a null pointer is always true}}
31 if (array == 0) // expected-warning {{comparison of array 'array' equal to a null pointer is always false}}
36 #define NULL (void*)0
47 if (&pointer == NULL) {} // expected-warning {{comparison of address of 'pointer' equal to a null pointer is always false}}
49 if (&pointer != NULL) {} // expected-warning {{comparison of address of 'pointer' not equal to a null pointer is always true}}
56 if (array != 0) {} // expected-warning {{comparison of array 'array' not equal to a null pointer is always true}}
58 if (array == 0) {} // expected-warning {{comparison of array 'array' equal to a null pointer is always false}}