Home | History | Annotate | Download | only in Sema

Lines Matching full:format

5 void a(const char *a, ...) __attribute__((format(printf, 1,2))); // no-error
6 void b(const char *a, ...) __attribute__((format(printf, 1,1))); // expected-error {{'format' attribute parameter 3 is out of bounds}}
7 void c(const char *a, ...) __attribute__((format(printf, 0,2))); // expected-error {{'format' attribute parameter 2 is out of bounds}}
8 void d(const char *a, int c) __attribute__((format(printf, 1,2))); // expected-error {{format attribute requires variadic function}}
9 void e(char *str, int c, ...) __attribute__((format(printf, 2,3))); // expected-error {{format argument not a string type}}
12 void f(xpto c, va_list list) __attribute__((format(printf, 1, 0))); // no-error
13 void g(xpto c) __attribute__((format(printf, 1, 0))); // no-error
15 void y(char *str) __attribute__((format(strftime, 1,0))); // no-error
16 void z(char *str, int c, ...) __attribute__((format(strftime, 1,2))); // expected-error {{strftime format attribute requires 3rd parameter to be 0}}
18 int (*f_ptr)(char*,...) __attribute__((format(printf, 1,2))); // no-error
19 int (*f2_ptr)(double,...) __attribute__((format(printf, 1, 2))); // expected-error {{format argument not a string type}}
22 int (*printf)(const char *format, ...) __attribute__((__format__(printf, 1, 2))); // no-error
23 int (*printf2)(double format, ...) __attribute__((__format__(printf, 1, 2))); // expected-error {{format argument not a string type}}
26 typedef int (*f3_ptr)(char*,...) __attribute__((format(printf,1,0))); // no-error
30 __attribute__ ((format (printf, 3, 0)));
38 // same as format(printf(...))...
39 void a2(const char *a, ...) __attribute__((format(printf0, 1,2))); // no-error
40 void b2(const char *a, ...) __attribute__((format(printf0, 1,1))); // expected-error {{'format' attribute parameter 3 is out of bounds}}
41 void c2(const char *a, ...) __attribute__((format(printf0, 0,2))); // expected-error {{'format' attribute parameter 2 is out of bounds}}
42 void d2(const char *a, int c) __attribute__((format(printf0, 1,2))); // expected-error {{format attribute requires variadic function}}
43 void e2(char *str, int c, ...) __attribute__((format(printf0, 2,3))); // expected-error {{format argument not a string type}}
65 const char *foo(const char *format) __attribute__((format_arg(1)));
67 void __attribute__((format(printf, 1, 0)))