Home | History | Annotate | Download | only in SemaCXX

Lines Matching defs:printf

7 extern int printf(const char *restrict, ...);
15 printf("%a", 1.0);
20 printf("%ls", "foo"); // expected-warning{{format specifies type 'wchar_t *' but the argument has type 'const char *'}}
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 *'}}
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 *'}}
60 int Foo::printf(const char *fmt, ...) {
84 printf("%d", arg); // no-warning
89 printf("%d", arg); // expected-warning {{format specifies type 'int' but the argument has type 'const char *'}}
101 printf("%d", arg); // no-warning
107 void format(const char *fmt, ...) __attribute__((format(printf,2,3)));
120 extern void (^block_print)(const char * format, ...) __attribute__((format(printf, 1, 2)));
139 void func1(const char *, ...) __attribute__((__format__(printf, 1, 2))); // expected-error {{format attribute cannot specify the implicit this argument as the format string}}
140 void (*func2)(const char *, ...) __attribute__((__format__(printf, 1, 2)));
141 static void (*func3)(const char *, ...) __attribute__((__format__(printf, 1, 2)));
142 static void func4(const char *, ...) __attribute__((__format__(printf, 1, 2)));