Lines Matching full:object

48 …return; // expected-warning{{leak}} expected-note{{Object leaked: object allocated and stored into…
52 …ted-note{{Call to function 'CFCreateSomething' returns a Core Foundation object of type 'CFTypeRef…
53 …return; // expected-warning{{leak}} expected-note{{Object leaked: object allocated and stored into…
57 …id leaked = [foo methodWithValue]; // expected-note{{Method returns an Objective-C object with a +…
58 …[leaked retain]; // expected-note{{Reference count incremented. The object now has a +1 retain cou…
59 …[leaked retain]; // expected-note{{Reference count incremented. The object now has a +2 retain cou…
60 …[leaked release]; // expected-note{{Reference count decremented. The object now has a +1 retain co…
61 …return; // expected-warning{{leak}} expected-note{{Object leaked: object allocated and stored into…
65 …id leaked = foo.propertyValue; // expected-note{{Property returns an Objective-C object with a +0 …
66 …[leaked retain]; // expected-note{{Reference count incremented. The object now has a +1 retain cou…
67 …return; // expected-warning{{leak}} expected-note{{Object leaked: object allocated and stored into…
71 …pected-note{{Call to function 'CFGetSomething' returns a Core Foundation object of type 'CFTypeRef…
72 …CFRetain(leaked); // expected-note{{Reference count incremented. The object now has a +1 retain co…
73 …return; // expected-warning{{leak}} expected-note{{Object leaked: object allocated and stored into…
77 …id object = [[NSObject alloc] init]; // expected-note{{Method returns an instance of NSObject with…
78 [object dealloc]; // expected-note{{Object released by directly sending the '-dealloc' message}}
79 …[object class]; // expected-warning{{Reference-counted object is used after it is released}} // ex…
83 …id object = [[NSObject alloc] init]; // expected-note{{Method returns an instance of NSObject with…
84 [object release]; // expected-note{{Object released}}
85 …[object class]; // expected-warning{{Reference-counted object is used after it is released}} // ex…
89 …id object = [[NSObject alloc] init]; // expected-note{{Method returns an instance of NSObject with…
90 [object autorelease]; // expected-note{{Object autoreleased}}
91 [object autorelease]; // expected-note{{Object autoreleased}}
92 …turn; // expected-warning{{Object autoreleased too many times}} expected-note{{Object was autorele…
96 …id object = foo.propertyValue; // expected-note{{Property returns an Objective-C object with a +0 …
97 [object autorelease]; // expected-note{{Object autoreleased}}
98 …return; // expected-warning{{Object autoreleased too many times}} expected-note{{Object was autore…
102 …ted-note{{Call to function 'CFCreateSomething' returns a Core Foundation object of type 'CFTypeRef…
105 …return; // expected-warning{{leak}} expected-note{{Object leaked: object allocated and stored into…
109 …CFTypeRef object = CFGetSomething(); // expected-note{{Call to function 'CFGetSomething' returns a…
110 …rn object; // expected-warning{{Object with a +0 retain count returned to caller where a +1 (ownin…
114 …CFTypeRef object = CFCreateSomething(); // expected-note{{Call to function 'CFCreateSomething' ret…
115 …return object; // expected-warning{{leak}} expected-note{{Object leaked: object allocated and stor…
120 …id result = self.propertyValue; // expected-note{{Property returns an Objective-C object with a +0…
121 …expected-warning{{Object with a +0 retain count returned to caller where a +1 (owning) retain coun…
125 …id result = self[0]; // expected-note{{Subscript returns an Objective-C object with a +0 retain co…
126 …expected-warning{{Object with a +0 retain count returned to caller where a +1 (owning) retain coun…
130 …id result = self[self]; // expected-note{{Subscript returns an Objective-C object with a +0 retain…
131 …expected-warning{{Object with a +0 retain count returned to caller where a +1 (owning) retain coun…
136 …return result; // expected-warning{{leak}} expected-note{{Object leaked: object allocated and stor…
141 [result autorelease]; // expected-note{{Object autoreleased}}
142 …expected-warning{{Object with a +0 retain count returned to caller where a +1 (owning) retain coun…
170 id result = @1; // expected-note{{NSNumber literal is an object with a +0 retain count}}
171 …rement}} expected-note{{Incorrect decrement of the reference count of an object that is not owned …
175 …id result = @(x); // expected-note{{NSNumber boxed expression produces an object with a +0 retain …
176 …rement}} expected-note{{Incorrect decrement of the reference count of an object that is not owned …
180 …id result = @(str); // expected-note{{NSString boxed expression produces an object with a +0 retai…
181 …rement}} expected-note{{Incorrect decrement of the reference count of an object that is not owned …
185 id result = @[obj]; // expected-note{{NSArray literal is an object with a +0 retain count}}
186 …rement}} expected-note{{Incorrect decrement of the reference count of an object that is not owned …
190 …id result = @{key: value}; // expected-note{{NSDictionary literal is an object with a +0 retain co…
191 …rement}} expected-note{{Incorrect decrement of the reference count of an object that is not owned …
194 // Test that we step into the init method when the allocated object is leaked due to early escape w…
226 id x = [[MyObj alloc] initX]; // expected-warning {{Potential leak of an object}}
230 …// expected-note@-4 {{Object leaked: allocated object of type 'MyObj *' is not referenced later in…
237 id z = [[MyObj alloc] initZ]; // expected-warning {{Potential leak of an object}}
238 …// expected-note@-1 {{Object leaked: object allocated and stored into 'y' is not referenced later …
247 …CFTypeRef object = CFCreateSomething(); // expected-note{{Call to function 'CFCreateSomething' ret…
248 CFAutorelease(object); // expected-note{{Object autoreleased}}
249 CFAutorelease(object); // expected-note{{Object autoreleased}}
250 …turn; // expected-warning{{Object autoreleased too many times}} expected-note{{Object was autorele…
254 …CFTypeRef object = CFGetSomething(); // expected-note{{Call to function 'CFGetSomething' returns a…
255 CFAutorelease(object); // expected-note{{Object autoreleased}}
256 …return; // expected-warning{{Object autoreleased too many times}} expected-note{{Object was autore…
260 …CFTypeRef object = CFGetSomething(); // expected-note{{Call to function 'CFGetSomething' returns a…
261 CFAutorelease(object); // expected-note{{Object autoreleased}}
262 [(id)object autorelease]; // expected-note{{Object autoreleased}}
263 …turn; // expected-warning{{Object autoreleased too many times}} expected-note{{Object was autorele…
285 [_unownedProp retain]; // FIXME-note {{Object loaded from instance variable}}
286 // FIXME-note@-1 {{Reference count incremented. The object now has a +1 retain count}}
288 …[_unownedProp release]; // FIXME-note {{Incorrect decrement of the reference count of an object th…
293 [_ownedProp retain]; // FIXME-note {{Object loaded from instance variable}}
294 // FIXME-note@-1 {{Reference count incremented. The object now has a +1 retain count}}
296 [_ownedProp release]; // FIXME-note {{Strong instance variable relinquished. Object released}}
297 [_ownedProp myMethod]; // FIXME-note {{Reference-counted object is used after it is released}}
302 [_ivarOnly retain]; // FIXME-note {{Object loaded from instance variable}}
303 // FIXME-note@-1 {{Reference count incremented. The object now has a +1 retain count}}
305 [_ivarOnly release]; // FIXME-note {{Strong instance variable relinquished. Object released}}
306 [_ivarOnly myMethod]; // FIXME-note {{Reference-counted object is used after it is released}}
311 [_ownedProp retain]; // FIXME-note {{Object loaded from instance variable}}
312 // FIXME-note@-1 {{Reference count incremented. The object now has a +1 retain count}}
314 [_ownedProp autorelease]; // FIXME-note {{Object autoreleased}}
315 [_ownedProp autorelease]; // FIXME-note {{Object autoreleased}}
316 // FIXME-note@+1 {{Object was autoreleased 2 times but the object has a +0 retain count}}
317 } // FIXME-warning{{Object autoreleased too many times}}
320 [_ivarOnly retain]; // FIXME-note {{Object loaded from instance variable}}
321 // FIXME-note@-1 {{Reference count incremented. The object now has a +1 retain count}}
323 [_ivarOnly autorelease]; // FIXME-note {{Object autoreleased}}
324 [_ivarOnly autorelease]; // FIXME-note {{Object autoreleased}}
325 // FIXME-note@+1 {{Object was autoreleased 2 times but the object has a +0 retain count}}
326 } // FIXME-warning{{Object autoreleased too many times}}