Lines Matching full:argument
10 printf("%s", x); // expected-warning{{format specifies type 'char *' but the argument has type 'int'}}
11 printf("%lf", x); // expected-warning{{format specifies type 'double' but the argument has type 'int'}}
16 NSLog(@"%s", x); // expected-warning{{format specifies type 'char *' but the argument has type 'int'}}
17 NSLog(@"%lf", x); // expected-warning{{format specifies type 'double' but the argument has type 'int'}}
18 NSLog(@"%@", x); // expected-warning{{format specifies type 'id' but the argument has type 'int'}}
25 printf("%d", x); // expected-warning{{format specifies type 'int' but the argument has type 'char *'}}
27 printf("%lf", x); // expected-warning{{format specifies type 'double' but the argument has type 'char *'}}
31 NSLog(@"%d", x); // expected-warning{{format specifies type 'int' but the argument has type 'char *'}}
33 NSLog(@"%lf", x); // expected-warning{{format specifies type 'double' but the argument has type 'char *'}}
34 NSLog(@"%@", x); // expected-warning{{format specifies type 'id' but the argument has type 'char *'}}
41 NSLog(@"%d", x); // expected-warning{{format specifies type 'int' but the argument has type 'id'}}
42 NSLog(@"%s", x); // expected-warning{{format specifies type 'char *' but the argument has type 'id'}}
43 NSLog(@"%lf", x); // expected-warning{{format specifies type 'double' but the argument has type 'id'}}
52 NSLog(@"%d", x); // expected-warning{{format specifies type 'int' but the argument has type 'CFStringRef'}}
53 NSLog(@"%s", x); // expected-warning{{format specifies type 'char *' but the argument has type 'CFStringRef'}}
54 NSLog(@"%lf", x); // expected-warning{{format specifies type 'double' but the argument has type 'CFStringRef'}}
63 NSLog(@"%d", x); // expected-warning{{format specifies type 'int' but the argument has type 'block_t'}}
64 NSLog(@"%s", x); // expected-warning{{format specifies type 'char *' but the argument has type 'block_t'}}
65 NSLog(@"%lf", x); // expected-warning{{format specifies type 'double' but the argument has type 'block_t'}}
73 NSLog(@"%d", x); // expected-warning{{format specifies type 'int' but the argument has type 'Class'}}
74 NSLog(@"%s", x); // expected-warning{{format specifies type 'char *' but the argument has type 'Class'}}
75 NSLog(@"%lf", x); // expected-warning{{format specifies type 'double' but the argument has type 'Class'}}
85 NSLog(@"%@", x); // expected-warning{{format specifies type 'id' but the argument has underlying type 'int'}}
92 NSLog(@"%@", x); // expected-warning{{format specifies type 'id' but the argument has underlying type 'size_t' (aka}}
99 NSLog(@"%s", c); // expected-warning{{format specifies type 'char *' but the argument has type 'char'}}
102 NSLog(@"%lf", c); // expected-warning{{format specifies type 'double' but the argument has type 'char'}}
105 NSLog(@"%@", c); // expected-warning{{format specifies type 'id' but the argument has type 'char'}}
112 NSLog(@"%s", s); // expected-warning{{format specifies type 'char *' but the argument has type 'signed char'}}
115 NSLog(@"%lf", s); // expected-warning{{format specifies type 'double' but the argument has type 'signed char'}}
118 NSLog(@"%@", s); // expected-warning{{format specifies type 'id' but the argument has type 'signed char'}}
125 NSLog(@"%s", u); // expected-warning{{format specifies type 'char *' but the argument has type 'unsigned char'}}
128 NSLog(@"%lf", u); // expected-warning{{format specifies type 'double' but the argument has type 'unsigned char'}}
131 NSLog(@"%@", u); // expected-warning{{format specifies type 'id' but the argument has type 'unsigned char'}}
138 NSLog(@"%s", n); // expected-warning{{format specifies type 'char *' but the argument has type 'uint8_t' (aka 'unsigned char')}}
141 NSLog(@"%lf", n); // expected-warning{{format specifies type 'double' but the argument has type 'uint8_t' (aka 'unsigned char')}}
144 NSLog(@"%@", n); // expected-warning{{format specifies type 'id' but the argument has type 'uint8_t' (aka 'unsigned char')}}
151 NSLog(@"%s", 'a'); // expected-warning{{format specifies type 'char *' but the argument has type 'char'}}
154 NSLog(@"%lf", 'a'); // expected-warning{{format specifies type 'double' but the argument has type 'char'}}
157 NSLog(@"%@", 'a'); // expected-warning{{format specifies type 'id' but the argument has type 'char'}}
164 NSLog(@"%s", 'abcd'); // expected-warning{{format specifies type 'char *' but the argument has type 'int'}}
167 NSLog(@"%lf", 'abcd'); // expected-warning{{format specifies type 'double' but the argument has type 'int'}}
170 NSLog(@"%@", 'abcd'); // expected-warning{{format specifies type 'id' but the argument has type 'int'}}
177 // type-checker expects %c to correspond to an integer argument, because
180 NSLog(@"%c", 'abcd'); // missing-warning{{format specifies type 'char' but the argument has type 'int'}}
189 NSLog(@"%C", 0x260300); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'int'}}
195 NSLog(@"%C", 0x260300); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'int'}}
199 NSLog(@"%C", data ? 0x2F0000 : 0x260300); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'int'}}
204 NSLog(@"%C", 0.0); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'double'}}
208 NSLog(@"%C", (char)0x260300); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'char'}}
212 NSLog(@"%C", 'a'); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'char'}}
219 printf("%d", u); // expected-warning{{format specifies type 'int' but the argument has type 'unsigned long'}}
220 printf("%i", u); // expected-warning{{format specifies type 'int' but the argument has type 'unsigned long'}}
221 printf("%u", i); // expected-warning{{format specifies type 'unsigned int' but the argument has type 'long'}}
227 printf("%+d", u); // expected-warning{{format specifies type 'int' but the argument has type 'unsigned long'}}
248 printf("%f", (Implicit)0); // expected-warning{{format specifies type 'double' but the argument has underlying type}}
251 printf("%f", (ImplicitLongLong)0); // expected-warning{{format specifies type 'double' but the argument has underlying type}}
254 printf("%f", (ExplicitShort)0); // expected-warning{{format specifies type 'double' but the argument has underlying type 'short'}}