Lines Matching refs:format
4 int printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
7 static void f(const char *, ...) __attribute__((format(printf, 1, 2)));
12 void g(const char*, ...) __attribute__((format(printf, 2, 3)));
15 void h(const char*, ...) __attribute__((format(printf, 1, 4))); // \
16 expected-error{{implicit this argument as the format string}}
17 void h2(const char*, ...) __attribute__((format(printf, 2, 1))); // \
22 void operator() (const char*, ...) __attribute__((format(printf, 2, 3)));
26 struct A { void a(const char*,...) __attribute((format(printf,2,3))); };
36 __attribute__((format(printf, 2, 3)));
50 void format(const char *fmt, Args &&...args) // expected-warning{{GCC requires a function with the …
51 __attribute__((format(printf, 1, 2)));
62 …void format(const char *const fmt, Args &&...args) // expected-warning{{GCC requires a function wi… in format() function
63 __attribute__((format(printf, 2, 3))) { in format()
69 __attribute__((format(printf, 1, 2)));
75 format("bare string"); in do_format()
76 …format("%s", 123); // expected-warning{{format specifies type 'char *' but the argument has type '… in do_format()
77 format("%s %s %u %d %i %p\n", "hello", s, 10u, x, y, &do_format); in do_format()
78 format("%s %s %u %d %i %p\n", "hello", s, 10u, x, y, do_format); in do_format()
79 format("bad format %s"); // expected-warning{{more '%' conversions than data arguments}} in do_format()
84 …f.format("%s", 123); // expected-warning{{format specifies type 'char *' but the argument has type… in do_format()
85 f.format("%s %s %u %d %i %p\n", "hello", s, 10u, x, y, &do_format); in do_format()
86 f.format("%s %s %u %d %i %p\n", "hello", s, 10u, x, y, do_format); in do_format()
87 f.format("bad format %s"); // expected-warning{{more '%' conversions than data arguments}} in do_format()