Lines Matching full:but

57   // the field width and precision.  This deviates from C99, but is reasonably safe  in check_string_literal()
95 …printf("%n", b); // expected-warning{{format specifies type 'int *' but the argument has type 'cha… in check_writeback_specifier()
101 …printf("%hhn", (int*)0); // expected-warning{{format specifies type 'signed char *' but the argume… in check_writeback_specifier()
105 …printf("%hn", (int*)0); // expected-warning{{format specifies type 'short *' but the argument has … in check_writeback_specifier()
109 …printf("%n", (char*)0); // expected-warning{{format specifies type 'int *' but the argument has ty… in check_writeback_specifier()
113 …printf("%ln", (int*)0); // expected-warning{{format specifies type 'long *' but the argument has t… in check_writeback_specifier()
117 …printf("%lln", (int*)0); // expected-warning{{format specifies type 'long long *' but the argument… in check_writeback_specifier()
121 …printf("%qn", (int*)0); // expected-warning{{format specifies type 'long long *' but the argument … in check_writeback_specifier()
131 …sprintf(buf,"%%%%%ld%d%d", 1, 2, 3); // expected-warning{{format specifies type 'long' but the arg… in check_invalid_specifier()
132 …snprintf(buf, 2, "%%%%%ld%;%d", 1, 2, 3); // expected-warning{{format specifies type 'long' but th… in check_invalid_specifier()
168 …printf("%*d","foo",x); // expected-warning {{field width should have type 'int', but argument has … in check_asterisk_precision_width()
169 …printf("%.*d","foo",x); // expected-warning {{field precision should have type 'int', but argument… in check_asterisk_precision_width()
215 …printf("%*d\n", f, x); // expected-warning{{field width should have type 'int', but argument has t… in test10()
216 …printf("%*.*d\n", x, f, x); // expected-warning{{field precision should have type 'int', but argum… in test10()
224 …printf("%f", 4); // expected-warning{{format specifies type 'double' but the argument has type 'in… in test10()
226 …printf("%qd", x); // expected-warning{{format specifies type 'long long' but the argument has type… in test10()
232 …printf("%d", (long long) 10); // expected-warning{{format specifies type 'int' but the argument ha… in test10()
234 …printf("%f\n", (long double) 1.0); // expected-warning{{format specifies type 'double' but the arg… in test10()
237 …printf("%c\n", "x"); // expected-warning{{format specifies type 'int' but the argument has type 'c… in test10()
238 …printf("%c\n", 1.23); // expected-warning{{format specifies type 'int' but the argument has type '… in test10()
245 …printf("%hhu", (short) 10); // expected-warning{{format specifies type 'unsigned char' but the arg… in should_understand_small_integers()
246 …gned char) 1); // expected-warning{{format specifies type 'unsigned short' but the argument has ty… in should_understand_small_integers()
247 …printf("%hu\n", (uint8_t)1); // expected-warning{{format specifies type 'unsigned short' but the a… in should_understand_small_integers()
252 …printf("%p", 123); // expected-warning{{format specifies type 'void *' but the argument has type '… in test11()
266 …printf ("%.4s\n", &buf); // expected-warning{{format specifies type 'char *' but the argument has … in test12()
269 …asprintf(&b, "%d", "asprintf"); // expected-warning{{format specifies type 'int' but the argument … in test12()
275 …printf("x: '0%hhd'\n", x); // expected-warning {{format specifies type 'char' but the argument has… in test13()
296 …printf("%s", s); // expected-warning{{format specifies type 'char *' but the argument has type 'wc… in test_unicode_conversions()
302 printf("%S", "hello"); // expected-warning{{but the argument has type 'char *'}} in test_unicode_conversions()
313 …printf("%1$d%1$f", (int) 2); // expected-warning{{format specifies type 'double' but the argument … in test_positional_arguments()
325 …myprintf_PR_6697("%s\n", 1, (int)0); // expected-warning{{format specifies type 'char *' but the a… in test_pr_6697()
327 // but we need a way to identify those cases. in test_pr_6697()
331 …myprintf_PR_6697("%1$s\n", 1, (int) 0); // expected-warning{{format specifies type 'char *' but th… in test_pr_6697()
382 // This is likely to crash in most cases, but -Wformat-nonliteral technically in rdar8269537()
413 // Test what happens when -Wformat is on, but -Wformat-security is off.
418 …printf("%s", 1); // expected-warning{{format specifies type 'char *' but the argument has type 'in… in pr8486()
431 …printf("%s", 2); // expected-warning{{format specifies type 'char *' but the argument has type 'in… in rdar9612060()
476 …printf(kFormat6, 5); // expected-warning{{format specifies type 'char *' but the argument has type… in pr9751()
477 …printf("%s", 5); // expected-warning{{format specifies type 'char *' but the argument has type 'in… in pr9751()
500 …printf(kFormat12, 4.4); // expected-warning{{field width should have type 'int', but argument has … in pr9751()
501 …printf("%*d", 4.4); // expected-warning{{field width should have type 'int', but argument has type… in pr9751()
525 …printf(kFormat17, (int[]){0}); // expected-warning{{format specifies type 'unsigned short' but the… in pr9751()
527 …printf("%a", (long double)0); // expected-warning{{format specifies type 'double' but the argument… in pr9751()
597 …printf("%n", cip); // expected-warning{{format specifies type 'int *' but the argument has type 'c… in test_qualifiers()
598 …printf("%n", cvip); // expected-warning{{format specifies type 'int *' but the argument has type '… in test_qualifiers()
608 …printf("%n", (cip_t)0); // expected-warning{{format specifies type 'int *' but the argument has ty… in test_qualifiers()