Lines Matching refs:NULL

61   int a = NULL; // expected-warning {{implicit conversion of NULL constant to 'int'}}  in test3()
63 b = NULL; // expected-warning {{implicit conversion of NULL constant to 'int'}} in test3()
64 …long l = NULL; // FIXME: this should also warn, but currently does not if sizeof(NULL)==sizeof(int… in test3()
65 int c = ((((NULL)))); // expected-warning {{implicit conversion of NULL constant to 'int'}} in test3()
67 d = ((((NULL)))); // expected-warning {{implicit conversion of NULL constant to 'int'}} in test3()
68 bool bl = NULL; // expected-warning {{implicit conversion of NULL constant to 'bool'}} in test3()
69 char ch = NULL; // expected-warning {{implicit conversion of NULL constant to 'char'}} in test3()
70 …unsigned char uch = NULL; // expected-warning {{implicit conversion of NULL constant to 'unsigned … in test3()
71 short sh = NULL; // expected-warning {{implicit conversion of NULL constant to 'short'}} in test3()
72 double dbl = NULL; // expected-warning {{implicit conversion of NULL constant to 'double'}} in test3()
78 #define FINIT int a3 = NULL; in test3()
83 int *ip = NULL; in test3()
84 int (*fp)() = NULL; in test3()
89 int foo::*datamem = NULL; in test3()
90 int (foo::*funmem)() = NULL; in test3()
97 void tmpl(char c = NULL, // expected-warning 3 {{implicit conversion of NULL constant to 'char'}} in tmpl()
98 T a = NULL, // expected-warning {{implicit conversion of NULL constant to 'char'}} \ in tmpl()
99 expected-warning {{implicit conversion of NULL constant to 'int'}} in tmpl()
104 void tmpl2(T t = NULL) { in tmpl2()
126 return NULL; in func()
139 #define NULL_COND(cond) ((cond) ? &num : NULL)
213 ((cond) ? nullptr : NULL)
215 ((cond) ? NULL : nullptr)
237 NULL : NULL)
238 #define run2() (dostuff() ? NULL : NULL)
250 #define x return NULL;
264 #define check_str_null_13(str) ((str) ? str : NULL)
277 …CHECK13(some_bool_function(NULL)); // expected-warning {{implicit conversion of NULL constant to … in function2()
296 conditional_run_13(NULL); in function4()