Home
last modified time | relevance | path

Searched refs:autorelease (Results 1 – 25 of 125) sorted by relevance

12345

/external/protobuf/objectivec/Tests/
DGPBUnknownFieldSetTest.m72 [[[GPBUnknownFieldSet alloc] init] autorelease];
82 [[[GPBUnknownField alloc] initWithNumber:tag] autorelease];
88 [[[GPBUnknownField alloc] initWithNumber:tag] autorelease];
112 GPBUnknownFieldSet* set1 = [[[GPBUnknownFieldSet alloc] init] autorelease];
113 GPBUnknownField* field = [[[GPBUnknownField alloc] initWithNumber:2] autorelease];
116 field = [[[GPBUnknownField alloc] initWithNumber:3] autorelease];
120 GPBUnknownFieldSet* set2 = [[[GPBUnknownFieldSet alloc] init] autorelease];
121 field = [[[GPBUnknownField alloc] initWithNumber:1] autorelease];
124 field = [[[GPBUnknownField alloc] initWithNumber:3] autorelease];
128 GPBUnknownFieldSet* set3 = [[[GPBUnknownFieldSet alloc] init] autorelease];
[all …]
/external/clang/test/ARCMT/
Dautoreleases.m34 [_prop autorelease];
38 [_prop autorelease];
46 [_xpc_prop autorelease];
55 A *a = [[A new] autorelease];
56 B *b = [[B new] autorelease];
63 [prevVal autorelease];
68 [[val retain] autorelease];
74 [a autorelease];
Dchecking.m20 - (id)autorelease NS_AUTOMATED_REFCOUNT_UNAVAILABLE;
49 - (id)autorelease __attribute__((unavailable)); // expected-note 2 {{'autorelease' has been explici…
67 - (id)autorelease { return self; } // expected-error {{ARC forbids implementation}} method
93 …[a autorelease]; // expected-error {{it is not safe to remove an unused 'autorelease' message; its…
95 // expected-error {{'autorelease' is unavailable}}
96 …[a autorelease]; // expected-error {{it is not safe to remove an unused 'autorelease' message; its…
98 // expected-error {{'autorelease' is unavailable}}
112 s = @selector(autorelease); // expected-error {{ARC forbids use of 'autorelease' in a @selector}}
/external/clang/test/Analysis/
Dvariadic-method-types.m22 - (id)autorelease; method
82 …[[[NSArray alloc] initWithObjects:@"Foo", "Bar", nil] autorelease]; // expected-warning {{Argument…
83 …[[[NSDictionary alloc] initWithObjectsAndKeys:@"Foo", "Bar", nil] autorelease]; // expected-warnin…
84 [[[NSDictionary alloc] initWithObjectsAndKeys:@"Foo", (void*) 0, nil] autorelease]; // no-warning
85 …[[[NSDictionary alloc] initWithObjectsAndKeys:@"Foo", kCGImageSourceShouldCache, nil] autorelease]…
86 [[[NSDictionary alloc] initWithObjectsAndKeys:@"Foo", fooType, nil] autorelease]; // no-warning
87 …[[[NSDictionary alloc] initWithObjectsAndKeys:@"Foo", barType, nil] autorelease]; // expected-warn…
88 …[[[NSSet alloc] initWithObjects:@"Foo", "Bar", nil] autorelease]; // expected-warning {{Argument t…
89 …[[[NSOrderedSet alloc] initWithObjects:@"Foo", "Bar", nil] autorelease]; // expected-warning {{Arg…
Dobjc-subscript.m9 -(id)autorelease; method
29 Test *cell = [[[Test alloc] init] autorelease];
42 return [self[self] autorelease]; // expected-warning{{Object autoreleased too many times}}
44 return [self[0] autorelease]; // expected-warning{{Object autoreleased too many times}}
DPR2599.m15 - (id)autorelease; method
45 …py: (void*)(bytes) length: (len) encoding: NSUTF8StringEncoding freeWhenDone: (BOOL)0] autorelease]
47 …D(cf) ( (((void*)0) == (cf)) ? ((void*)0) : [(id) CFMakeCollectable( (CFTypeRef) cf) autorelease] )
49 …TIL_AUTORELEASE_CF_AS_ID_WITHOUT_TEST(cf) ( [(id) CFMakeCollectable( (CFTypeRef) cf) autorelease] )
Dnullability-no-arc.mm8 - (instancetype)autorelease; method
82 return [[[self alloc] initWithNonnullReturnAndSelfCheckingIdiom] autorelease]; // no-warning
86 return [[[self alloc] initWithNonnullReturnAndNilReturnViaLocal] autorelease]; // no-warning
90 return [[[self alloc] initWithPreconditionViolation:p] autorelease]; // no-warning
DanalyzeOneFunction.m14 -(id)autorelease; method
39 Test1 *cell = [[[Test1 alloc] init] autorelease];
48 Test1 *cell = [[[Test1 alloc] init] autorelease];
Dproperties.m21 -(id)autorelease; method
55 Test1 *cell = [[[Test1 alloc] init] autorelease];
116 return [value autorelease]; // expected-warning {{Object autoreleased too many times}}
125 return [result autorelease]; // expected-warning {{Object autoreleased too many times}}
154 Person *p = [[[Person alloc] init] autorelease];
729 [_ownedProp autorelease];
735 [_ivarOnly autorelease];
741 [_ownedProp autorelease];
742 [_ownedProp autorelease];
748 [_ivarOnly autorelease];
[all …]
DNSString.m48 - (id)autorelease; method
194 // Test regular use of -autorelease
201 return [str autorelease]; // no-warning
207 [s autorelease];
211 NSString *s = [[[NSString alloc] init] autorelease]; // expected-warning{{leak}}
216 NSString *s = [[[NSString alloc] init] autorelease];
218 [s autorelease];
228 [s autorelease];
/external/clang/test/SemaObjC/
Dgcc-cast-ext.m9 - autorelease; // expected-note {{method 'autorelease' declared here}} method
17 @implementation PBXDocBookmark // expected-warning {{method definition for 'autorelease' not found}…
23 …rence:fileRef gylphRange:(NSRange)range anchor:(NSString *)htmlAnchor] autorelease]; // expected-…
Divar-access-package.m12 -autorelease; method
42 A *a = [[A new] autorelease];
43 B *b = [[B new] autorelease];
/external/google-breakpad/src/common/mac/
DGTMLogger.m51 return [[gSharedLogger retain] autorelease];
56 [gSharedLogger autorelease];
66 autorelease];
67 id<GTMLogFilter> filter = [[[GTMLogLevelFilter alloc] init] autorelease];
70 filter:filter] autorelease];
101 autorelease];
107 autorelease]];
113 autorelease]];
118 filter:[[[GTMLogNoFilter alloc] init] autorelease]];
148 filter:filter] autorelease];
[all …]
/external/protobuf/objectivec/
DGPBDictionary.m585 //% return [[[self alloc] initWith##VNAME$u##s:NULL forKeys:NULL count:0] autorelease];
594 … KEY_NAME$S VALUE_NAME$S ##VNAME$S## count:1] autorelease];
604 //% KEY_NAME$S VALUE_NAME$S count:count] autorelease];
610 …[[(GPB##KEY_NAME##VALUE_NAME##Dictionary*)[self alloc] initWithDictionary:dictionary] autorelease];
614 //% return [[[self alloc] initWithCapacity:numItems] autorelease];
677 //% count:0] autorelease];
684 //% count:0] autorelease];
695 … KEY_NAME$S VALUE_NAME$S count:1] autorelease];
707 … KEY_NAME$S VALUE_NAME$S count:count] autorelease];
713 …[[(GPB##KEY_NAME##VALUE_NAME##Dictionary*)[self alloc] initWithDictionary:dictionary] autorelease];
[all …]
DGPBArray.m78 //% return [[[self alloc] init] autorelease];
84 //% return [[(GPB##NAME##Array*)[self alloc] initWithValues:&value count:1] autorelease];
88 //% return [[(GPB##NAME##Array*)[self alloc] initWithValueArray:array] autorelease];
92 //% return [[[self alloc] initWithCapacity:count] autorelease];
304 return [[[self alloc] init] autorelease];
310 return [[(GPBInt32Array*)[self alloc] initWithValues:&value count:1] autorelease];
314 return [[(GPBInt32Array*)[self alloc] initWithValueArray:array] autorelease];
318 return [[[self alloc] initWithCapacity:count] autorelease];
551 return [[[self alloc] init] autorelease];
557 return [[(GPBUInt32Array*)[self alloc] initWithValues:&value count:1] autorelease];
[all …]
/external/clang/test/Index/
Dcomplete-objc-message-id.m11 - (id)autorelease; method
51 // CHECK-CC1: ObjCInstanceMethodDecl:{ResultType id}{TypedText autorelease}
55 // CHECK-CC2: ObjCInstanceMethodDecl:{ResultType id}{TypedText autorelease}
59 // CHECK-CC3: ObjCInstanceMethodDecl:{ResultType id}{TypedText autorelease}
/external/clang/test/CodeGenObjC/
Dno-vararg-messaging.m11 -(id)autorelease; method
16 [[[[[[Foo alloc] init] retain] autorelease] self] release];
/external/google-breakpad/src/common/mac/testing/
DGTMSenTestCase.m69 [[[NSString alloc] initWithFormat:formatString arguments:vl] autorelease];
89 [[[NSString alloc] initWithFormat:formatString arguments:vl] autorelease];
110 [[[NSString alloc] initWithFormat:formatString arguments:vl] autorelease];
133 [[[NSString alloc] initWithFormat:formatString arguments:vl] autorelease];
161 [[[NSString alloc] initWithFormat:formatString arguments:vl] autorelease];
182 [[[NSString alloc] initWithFormat:formatString arguments:vl] autorelease];
207 [[[NSString alloc] initWithFormat:formatString arguments:vl] autorelease];
224 return [[[self alloc] initWithInvocation:anInvocation] autorelease];
284 // Wrap things in autorelease pools because they may
317 [e autorelease];
/external/swiftshader/third_party/LLVM/test/Transforms/ObjCARC/
Dcontract.ll59 ; Merge a retain,autorelease pair around a call.
73 ; Trivial retain,autorelease pair with intervening call, but it's post-dominated
74 ; by another release. The retain and autorelease can be merged.
92 ; Don't merge retain and autorelease if they're not control-equivalent.
Dempty-block.ll12 ; Don't delete the autorelease.
36 ; Do delete the autorelease, even with the retain in a different block.
/external/clang/test/SemaObjCXX/
Dconversion-to-objc-pointer-2.mm9 - (id) autorelease; method
82 NSObject* object1 = [[[NSObject alloc] init] autorelease];
/external/antlr/runtime/ObjC/Framework/
DLinkedList.m73 @throw [[[NoSuchElementException alloc] init] autorelease];
89 @throw [[[NoSuchElementException alloc] init] autorelease];
109 @throw [[[IllegalStateException alloc] init] autorelease];
123 @throw [[[IllegalStateException alloc] init] autorelease];
143 @throw [[[ConcurrentModificationException alloc] init] autorelease];
257 LLNode *newNode = [[LLNode newNode:nil element:e next:f] autorelease];
274 LLNode *newNode = [[LLNode newNode:l element:e next:nil] autorelease];
291 LLNode *newNode = [[LLNode newNode:pred element:e next:succ] autorelease];
381 @throw [[[NoSuchElementException alloc] init] autorelease];
396 @throw [[[NoSuchElementException alloc] init] autorelease];
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/ObjCARC/
Dempty-block.ll12 ; Don't delete the autorelease.
36 ; Do delete the autorelease, even with the retain in a different block.
/external/llvm/test/Transforms/ObjCARC/
Dempty-block.ll12 ; Don't delete the autorelease.
36 ; Do delete the autorelease, even with the retain in a different block.
/external/webrtc/webrtc/base/
Dmaccocoathreadhelper.mm24 // The sole purpose of this autorelease pool is to avoid a console
26 // with no autorelease pool in place.

12345