Lines Matching full:warning
49 NSLog(@"%d%%", k); // no-warning
50 NSLog(@"%s%lb%d", "unix", 10,20); // expected-warning {{invalid conversion specifier 'b'}}
60 printf("%i ",test); // expected-warning{{format specifies type 'int' but the argument has type 'long long'}}
61 NSLog(@"%i ",test); // expected-warning{{format specifies type 'int' but the argument has type 'long long'}}
62 CFStringCreateWithFormat(CFSTR("%i"),test); // expected-warning{{format specifies type 'int' but the argument has type 'long long'}}
67 NSLog(@"%@!"); // expected-warning{{more '%' conversions than data arguments}}
73 printf("%p", x); // no-warning
74 printf("%p", y); // no-warning
82 MyNSLog(@"%@"); // expected-warning {{more '%' conversions than data arguments}}
83 MyCFStringCreateWithFormat(CFSTR("%@")); // expected-warning {{more '%' conversions than data arguments}}
93 [Foo fooWithFormat:@"%@"]; // expected-warning {{more '%' conversions than data arguments}}
94 [Foo fooWithCStringFormat:"%@"]; // expected-warning {{invalid conversion specifier '@'}}
99 NSLog(@"%@ %@", x, (BOOL) 1); // expected-warning {{format specifies type 'id' but the argument has type 'BOOL' (aka 'signed char')}}
104 printf(s1); // expected-warning {{more '%' conversions than data arguments}}
107 printf(s2); // expected-warning {{more '%' conversions than data arguments}}
110 printf(s3); // no-warning (NULL is a valid format string)
113 NSLog(ns1); // expected-warning {{more '%' conversions than data arguments}}
116 NSLog(ns2); // expected-warning {{more '%' conversions than data arguments}}
118 NSLog(ns3); // expected-warning {{format string is not a string literal}}}
122 NSLog(ns6); // expected-warning {{more '%' conversions than data arguments}}
133 [Foo fooWithFormat:NSLocalizedString(@"format"), @"arg"]; // no-warning
134 [Foo fooWithFormat:MyNSLocalizedString(@"format"), @"arg"]; // expected-warning {{format string is not a string literal}}}
138 NSAssert(@"Hello %@", @"World"); // no-warning
139 MyNSAssert(@"Hello %@", @"World"); // expected-warning {{data argument not used by format string}}
150 NSLog(@"%S", ptr); // no-warning
153 NSLog(@"%S", wchar_ptr); // expected-warning{{format specifies type 'const unichar *' (aka 'const unsigned short *') but the argument has type 'const wchar_t *'}}
159 NSLog(@"%ls", ptr); // no-warning
162 NSLog(@"%ls", wchar_ptr); // expected-warning{{format specifies type 'const unichar *' (aka 'const unsigned short *') but the argument has type 'const wchar_t *'}}
167 NSLog(@"%C", data); // no-warning
170 NSLog(@"%C", wchar_data); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'wchar_t'}}
175 NSLog(@"%@", x); // no-warning
176 CFStringCreateWithFormat(CFSTR("%@"), x); // no-warning
178 NSLog(@"%@", y); // no-warning
179 CFStringCreateWithFormat(CFSTR("%@"), y); // no-warning
192 NSLogv(fmt, ap); // expected-warning{{format string is not a string literal}}
199 NSLogv(fmt, ap); // no-warning
211 printf("%p", x); // no-warning
215 CFStringCreateWithFormat(__CFStringMakeConstantString("%@"), 1); // expected-warning{{format specifies type 'id' but the argument has type 'int'}}
232 [Foo fooWithFormat:@"%@ %@", dict[CFSTR("abc")]]; // expected-error{{indexing expression is invalid because subscript type 'CFStringRef' (aka 'const struct __CFString *') is not an integral or Objective-C pointer type}} expected-warning{{more '%' conversions than data arguments}}
238 printf("%d %d %d", 1L, *obj, 1L); // expected-error {{cannot pass object with interface type 'Foo' by value to variadic function; expected type from format string was 'int'}} expected-warning 2 {{format specifies type 'int' but the argument has type 'long'}}
239 printf("%!", *obj); // expected-error {{cannot pass object with interface type 'Foo' by value through variadic function}} expected-warning {{invalid conversion specifier}}
247 NSLog(@"dW %d dH %d",({ __typeof__(dW) __a = (dW); __a < 0 ? -__a : __a; }),({ __typeof__(dH) __a = (dH); __a < 0 ? -__a : __a; })); // expected-warning 2 {{format specifies type 'int' but the argument has type 'long'}}
251 NSLog(@"%C", 0x2022); // no-warning
252 NSLog(@"%C", 0x202200); // expected-warning{{format specifies type 'unichar' (aka 'unsigned short') but the argument has type 'int'}}
257 NSLog(@"%[]@", @"Foo"); // expected-warning {{missing object format flag}}
258 NSLog(@"%[", @"Foo"); // expected-warning {{incomplete format specifier}}
259 NSLog(@"%[tt", @"Foo"); // expected-warning {{incomplete format specifier}}
260 NSLog(@"%[tt]@", @"Foo"); // no-warning
261 NSLog(@"%[tt]@ %s", @"Foo", "hello"); // no-warning
262 NSLog(@"%s %[tt]@", "hello", @"Foo"); // no-warning
263 NSLog(@"%[blark]@", @"Foo"); // expected-warning {{'blark' is not a valid object format flag}}
264 NSLog(@"%2$[tt]@ %1$[tt]@", @"Foo", @"Bar"); // no-warning
265 NSLog(@"%2$[tt]@ %1$[tt]s", @"Foo", @"Bar"); // expected-warning {{object format flags cannot be used with 's' conversion specifier}}