• Home
  • Raw
  • Download

Lines Matching refs:NSString

39 @class NSString, Protocol;
40 extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2)));
43 @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
68 @class NSString;
80 @interface NSString : NSObject <NSCopying, NSMutableCopying, NSCoding> - (NSUInteger)length; interface
81 - (NSComparisonResult)compare:(NSString *)string;
82 - (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask;
83 - (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask range:(NSRang…
84 - (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask range:(NSRang…
85 - (NSComparisonResult)caseInsensitiveCompare:(NSString *)string;
87 + (id)stringWithFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2)));
89 @interface NSSimpleCString : NSString {} @end
97 NSComparisonResult f1(NSString* s) { argument
98 NSString *aString = 0;
99 …return [s compare:aString]; // expected-warning {{Argument to 'NSString' method 'compare:' cannot …
102 NSComparisonResult f2(NSString* s) {
103 NSString *aString = 0;
104 …return [s caseInsensitiveCompare:aString]; // expected-warning {{Argument to 'NSString' method 'ca…
107 NSComparisonResult f3(NSString* s, NSStringCompareOptions op) {
108 NSString *aString = 0;
109 …return [s compare:aString options:op]; // expected-warning {{Argument to 'NSString' method 'compar…
112 NSComparisonResult f4(NSString* s, NSStringCompareOptions op, NSRange R) {
113 NSString *aString = 0;
114 …return [s compare:aString options:op range:R]; // expected-warning {{Argument to 'NSString' method…
117 NSComparisonResult f5(NSString* s, NSStringCompareOptions op, NSRange R) {
118 NSString *aString = 0;
119 …String options:op range:R locale:0]; // expected-warning {{Argument to 'NSString' method 'compare:…
122 NSArray *f6(NSString* s) {
123 …return [s componentsSeparatedByCharactersInSet:0]; // expected-warning {{Argument to 'NSString' me…
126 NSString* f7(NSString* s1, NSString* s2, NSString* s3) {
128 NSString* s4 = (NSString*)
139 NSString* s = [[NSString alloc] init];
148 NSString* s = [[NSString alloc] init];
149 NSString* q = s;
154 NSString* f10() {
155 static NSString* s = 0;
156 if (!s) s = [[NSString alloc] init];
163 NSString* f11(CFDictionaryRef dict, const char* key) {
164 NSString* s = (NSString*) CFDictionaryGetValue(dict, key);
174 void unknown_function_f12(NSString** s);
176 NSString *string = [[NSString alloc] init];
187 @interface MyString : NSString
196 -(NSString*) getString;
199 -(NSString*) getString {
200 NSString *str = [[NSString alloc] init];
205 NSString *s = [[NSString alloc] init]; // expected-warning{{leak}}
211 NSString *s = [[[NSString alloc] init] autorelease]; // expected-warning{{leak}}
216 NSString *s = [[[NSString alloc] init] autorelease];
222 NSString *s = [[NSString alloc] init]; // expected-warning{{leak}}
227 NSString *s = [[NSString alloc] init];
233 - (NSString*) getShared;
237 - (NSString*) getShared {
238 static NSString* s = 0;
239 if (!s) s = [[NSString alloc] init];
300 NSString *old = 0;
301 NSString *s = [[NSString alloc] init]; // no-warning
309 NSString *old = 0;
310 NSString *s = [[NSString alloc] init]; // no-warning
318 NSString *old = 0;
319 NSString *s = [[NSString alloc] init]; // no-warning
333 NSString *old = 0;
334 NSString *s = [[NSString alloc] init]; // no-warning
342 NSString *old = 0;
343 NSString *s = [[NSString alloc] init]; // no-warning
350 void test_objc_atomicCompareAndSwap_parameter(NSString **old) {
351 NSString *s = [[NSString alloc] init]; // no-warning
358 void test_objc_atomicCompareAndSwap_parameter_no_direct_release(NSString **old) {
359 NSString *s = [[NSString alloc] init]; // expected-warning{{leak}}
369 NSString *string = [[NSString stringWithFormat:@"%ld", (long) 100] retain];
375 typedef NSString* WonkyTypedef;
381 NSString *str = [TestIsTracked newString]; // expected-warning{{Potential leak}}
401NSString *string = [[NSString stringWithFormat:@"%ld", (long) 100] retain]; // expected-warning {{…
406 void testOSCompareAndSwapXXBarrier_parameter(NSString **old) {
407 NSString *s = [[NSString alloc] init]; // no-warning
414 void testOSCompareAndSwapXXBarrier_parameter_no_direct_release(NSString **old) {
415 NSString *s = [[NSString alloc] init]; // no-warning
423 NSString *_value;
425 - (NSString *)_value;
431 - (NSString *)_value {
433 NSString *s = [[NSString alloc] init];