Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:format

20   printf("%ls", "foo"); // expected-warning{{format specifies type 'wchar_t *' but the argument has type 'const char *'}}
28 int scanf(const char *, ...) __attribute__((format(scanf, 2, 3)));
29 int printf(const char *, ...) __attribute__((format(printf, 2, 3)));
33 static int printf_static(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
39 foo.printf("%d", i); // expected-warning{{format specifies type 'int' but the argument has type 'int *'}}
40 Foo::printf_static("%d", i); // expected-warning{{format specifies type 'int' but the argument has type 'int *'}}
42 printf(foo.gettext("%d"), i); // expected-warning{{format specifies type 'int' but the argument has type 'int *'}}
43 printf(Foo::gettext_static("%d"), i); // expected-warning{{format specifies type 'int' but the argument has type 'int *'}}
46 // Test handling __null for format string literal checking.
48 int test_null_format(const char *format, ...) __attribute__((__format__ (__printf__, 1, 2)));
62 const char * const format = fmt;
63 vprintf(format, ap); // no-warning
66 vprintf(format2, ap); // expected-warning{{format string is not a string literal}}
74 vprintf(fmt, ap); // expected-warning{{format string is not a string literal}}
88 printf("%d", arg); // expected-warning {{format specifies type 'int' but the argument has type 'const char *'}}
106 void format(const char *fmt, ...) __attribute__((format(printf,2,3)));
110 format("%d", arg); // expected-warning {{format specifies type 'int' but the argument has type 'const char *'}}
119 extern void (^block_print)(const char * format, ...) __attribute__((format(printf, 1, 2)));
128 block_print("%d", arg); // expected-warning {{format specifies type 'int' but the argument has type 'const char *'}}
138 void func1(const char *, ...) __attribute__((__format__(printf, 1, 2))); // expected-error {{format attribute cannot specify the implicit this argument as the format string}}