Lines Matching full:pool
71 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
76 // the following pool was not released in this scope, don't touch it.
81 [pool drain];
87 NSAutoreleasePool * pool; // expected-error {{'NSAutoreleasePool' is unavailable}}
90 id x = pool; // We won't touch a NSAutoreleasePool if we can't safely
94 pool = [[NSAutoreleasePool alloc] init]; // expected-error {{'NSAutoreleasePool' is unavailable}}
96 [pool release];
100 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; // expected-error 2 {{'NSAutoreleasePool' is unavailable}} \
103 // 'x' is declared inside the "pool scope" but used outside it, if we create
104 // a @autorelease scope it will be undefined outside it so don't touch the pool.
107 [pool release]; // expected-note {{scope ends here}}
113 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; // expected-error 2 {{'NSAutoreleasePool' is unavailable}} \
118 [pool release]; // expected-note {{scope ends here}}
125 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; // expected-error 2 {{'NSAutoreleasePool' is unavailable}} \
130 [pool release]; // expected-note {{scope ends here}}
136 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; // expected-error 2 {{'NSAutoreleasePool' is unavailable}} \
141 [pool release]; // expected-note {{scope ends here}}