Home
last modified time | relevance | path

Searched full:retain (Results 1 – 25 of 11749) sorted by relevance

12345678910>>...470

/external/clang/test/SemaObjC/
Dwarn-retain-block-property.m14 @property (retain) void (^aBlock)(void);
15 @property (weak, retain) void (^aBlockW)(void);
16 @property (strong, retain) void (^aBlockS)(void); // OK
17 @property (readonly, retain) void (^aBlockR)(void); // OK
18 @property (copy, retain) void (^aBlockC)(void);
19 @property (assign, retain) void (^aBlockA)(void);
34 // CHECK-ARC: 14:1: warning: retain'ed block property does not copy the block - use copy attribute …
35 // CHECK-ARC: @property (retain) void (^aBlock)(void);
37 // CHECK-ARC: 15:1: error: property attributes 'retain' and 'weak' are mutually exclusive
38 // CHECK-ARC: @property (weak, retain) void (^aBlockW)(void);
[all …]
Dproperty-10.m8 @property(retain) int p1; // expected-error {{property with 'retain (or strong)' attribute must be …
9 @property(strong) int s1; // expected-error {{property with 'retain (or strong)' attribute must be …
14 @property(assign, retain) id p3_1; // expected-error {{property attributes 'assign' and 'retain' ar…
16 @property(copy, retain) id p3_2; // expected-error {{property attributes 'copy' and 'retain' are mu…
18retain) id p3_3; // expected-error {{property attributes 'assign' and 'copy' are mutually exclusiv…
22 @property(unsafe_unretained, retain) id p4_1; // expected-error {{property attributes 'unsafe_unret…
24retain) id p4_3; // expected-error {{property attributes 'unsafe_unretained' and 'copy' are mutual…
27 @property id p4; // expected-warning {{no 'assign', 'retain', or 'copy' attribute is specified - 'a…
35 @property (retain) int PROP; // expected-error {{property with 'retain (or strong)' attribute must … category
36 @property (strong) int SPROP; // expected-error {{property with 'retain (or strong)' attribute must…
Dwarn-retain-cycle.m1 …objc-runtime-has-weak -fobjc-arc -fblocks -verify -Wno-objc-root-class -Wno-implicit-retain-self %s
12 …]; // expected-warning {{capturing 'x' strongly in this block is likely to lead to a retain cycle}}
14 …}; // expected-warning {{capturing 'x' strongly in this block is likely to lead to a retain cycle}}
17 …]; // expected-warning {{capturing 'x' strongly in this block is likely to lead to a retain cycle}}
19 // These actually don't cause retain cycles.
25 // These do cause retain cycles, but we're not clever enough to figure that out.
31 … // expected-warning {{capturing 'x' strongly in this block is likely to lead to a retain cycle}} \
36 @property (retain) void (^strong)(void); // expected-warning {{retain'ed block property does not co…
43 @property (retain) BlockOwner *owner;
48 …x->owner.strong = ^{ (void) x; }; // expected-warning {{retain cycle}} expected-note {{block will …
[all …]
/external/clang/test/ARCMT/
Dretains.m12 @property (retain) id bar;
28 [x retain];
31 [obj retain];
33 [Something_Macro(@"foo", "@bar") retain];
35 [IhaveSideEffect() retain];
37 [[self something] retain];
39 [[self retain] something];
41 [[IhaveSideEffect() retain] release];
42 [[x retain] release];
45 return [self retain];
[all …]
/external/clang/test/Analysis/
DDeallocMissingRelease.m33 _ivar = [ivar retain];
72 _ivar = [ivar retain];
95 @property (retain) NSObject *ivar;
110 @property (retain) NSObject *ivar;
165 @property (retain) NSObject *ivar;
184 @property (retain) NSObject *ivar;
210 @property (retain) NSObject *ivar;
248 @property (retain) NSObject *ivar2;
270 @property (retain) NSObject *ivar;
289 @property (retain) NSObject *ivar;
[all …]
Dproperties.m23 -(id)retain; method
98 return [_myNumber retain];
110 value = [self.myNumber retain]; // this line fixes the over release
136 @property (retain) NSString * name;
156 p.name = [[NSString string] retain]; // expected-warning {{leak}}
328 @property (retain) NSNumber *retainedProperty;
348 // to the ivar. This would cause bad false negatives in the retain count
534 [self.name retain];
540 [self.name retain];
634 // Test quite a few cases of retain/release issues.
[all …]
/external/antlr/runtime/ObjC/Framework/examples/simplecTreeParser/
DSimpleCParser.m95 return [[[DFA2 alloc] initWithRecognizer:aRecognizer] retain];
275 return [[[SimpleCParser_program_return alloc] init] retain];
294 if (aTree != nil) [aTree retain];
313 return [[[SimpleCParser_declaration_return alloc] init] retain];
332 if (aTree != nil) [aTree retain];
351 return [[[SimpleCParser_variable_return alloc] init] retain];
370 if (aTree != nil) [aTree retain];
389 return [[[SimpleCParser_declarator_return alloc] init] retain];
408 if (aTree != nil) [aTree retain];
427 return [[[SimpleCParser_functionHeader_return alloc] init] retain];
[all …]
/external/antlr/runtime/ObjC/Framework/examples/polydiff/
DPolyDifferentiator.m74 return [[[PolyDifferentiator_poly_return alloc] init] retain];
93 if (aTree != nil) [aTree retain];
126 …newBitSetWithBits:(const unsigned long long *)FOLLOW_8_in_poly44_data Count:(NSUInteger)1] retain];
127 …BitSetWithBits:(const unsigned long long *)FOLLOW_poly_in_poly46_data Count:(NSUInteger)1] retain];
128 …BitSetWithBits:(const unsigned long long *)FOLLOW_poly_in_poly48_data Count:(NSUInteger)1] retain];
129 …BitSetWithBits:(const unsigned long long *)FOLLOW_MULT_in_poly55_data Count:(NSUInteger)1] retain];
130 …wBitSetWithBits:(const unsigned long long *)FOLLOW_INT_in_poly57_data Count:(NSUInteger)1] retain];
131 …ewBitSetWithBits:(const unsigned long long *)FOLLOW_ID_in_poly59_data Count:(NSUInteger)1] retain];
132 …BitSetWithBits:(const unsigned long long *)FOLLOW_MULT_in_poly71_data Count:(NSUInteger)1] retain];
133 …wBitSetWithBits:(const unsigned long long *)FOLLOW_INT_in_poly75_data Count:(NSUInteger)1] retain];
[all …]
DPolyParser.m68 return [[[PolyParser_poly_return alloc] init] retain];
87 if (aTree != nil) [aTree retain];
106 return [[[PolyParser_term_return alloc] init] retain];
125 if (aTree != nil) [aTree retain];
144 return [[[PolyParser_exp_return alloc] init] retain];
163 if (aTree != nil) [aTree retain];
196 …BitSetWithBits:(const unsigned long long *)FOLLOW_term_in_poly43_data Count:(NSUInteger)1] retain];
197 …newBitSetWithBits:(const unsigned long long *)FOLLOW_8_in_poly46_data Count:(NSUInteger)1] retain];
198 …BitSetWithBits:(const unsigned long long *)FOLLOW_term_in_poly49_data Count:(NSUInteger)1] retain];
199 …wBitSetWithBits:(const unsigned long long *)FOLLOW_INT_in_term63_data Count:(NSUInteger)1] retain];
[all …]
DSimplifier.m122 return [[[Simplifier_poly_return alloc] init] retain];
141 if (aTree != nil) [aTree retain];
160 return [[[Simplifier_synpred1_Simplifier_return alloc] init] retain];
179 if (aTree != nil) [aTree retain];
198 return [[[Simplifier_synpred2_Simplifier_return alloc] init] retain];
217 if (aTree != nil) [aTree retain];
236 return [[[Simplifier_synpred3_Simplifier_return alloc] init] retain];
255 if (aTree != nil) [aTree retain];
274 return [[[Simplifier_synpred4_Simplifier_return alloc] init] retain];
293 if (aTree != nil) [aTree retain];
[all …]
/external/openthread/src/core/common/
Dretain_ptr.hpp7 * 1. Redistributions of source code must retain the above copyright
31 * This file includes definitions for a retain (reference counted) smart pointer.
44 * This template class represents a retain (reference counted) smart pointer.
46 …* The `Type` class MUST provide mechanism to track its current retain count. It MUST provide the f…
49 * - void IncrementRetainCount(void); (Increment the retain count).
50 …* - uint16_t DecrementRetainCount(void); (Decrement the retain count and return the value afte…
53 * The `Type` can inherit from `RetainCountable` which provides the retain counting methods.
72 … * Upon construction the `RetainPtr` will increment the retain count on @p aPointer (if not null).
98 …* Upon destruction, the `RetainPtr` will decrement the retain count on the managed object (if not …
99 * free the object if its retain count reaches zero.
[all …]
/external/antlr/runtime/ObjC/Framework/
DTreeIterator.m12 // 1. Redistributions of source code must retain the above copyright
53 nodes = [[FastQueue newFastQueue] retain];
54 down = [[adaptor createTree:TokenTypeDOWN Text:@"DOWN"] retain];
55 up = [[adaptor createTree:TokenTypeUP Text:@"UP"] retain];
56 eof = [[adaptor createTree:TokenTypeEOF Text:@"EOF"] retain];
68 adaptor = [[CommonTreeAdaptor newTreeAdaptor] retain];
69 tree = [t retain];
71 nodes = [[FastQueue newFastQueue] retain];
72 down = [[adaptor createTree:TokenTypeDOWN Text:@"DOWN"] retain];
73 up = [[adaptor createTree:TokenTypeUP Text:@"UP"] retain];
[all …]
DRecognizerSharedState.m8 // 1. Redistributions of source code must retain the above copyright
53 return [[[RecognizerSharedState alloc] init] retain];
58 return [[[RecognizerSharedState alloc] initWithRuleLen:aLen] retain];
63 return [[[RecognizerSharedState alloc] initWithState:aState] retain];
70 following = [[AMutableArray arrayWithCapacity:10] retain];
80 ruleMemo = [[RuleStack newRuleStack:cnt] retain];
82 aHashRule = [[HashRule newHashRuleWithLen:17] retain];
101 following = [[AMutableArray arrayWithCapacity:10] retain];
110 ruleMemo = [[RuleStack newRuleStack:aLen] retain];
112 aHashRule = [[HashRule newHashRuleWithLen:17] retain];
[all …]
DMapElement.m13 // 1. Redistributions of source code must retain the above copyright
80 index = [[ACNumber numberWithInteger: aTType] retain];
81 name = [[NSString stringWithString:aName] retain];
91 if ( node ) [node retain];
100 name = [[NSString stringWithString:aName] retain];
102 if ( node ) [node retain];
112 if ( node ) [node retain];
163 [aName retain];
176 [aNode retain];
185 name = [((MapElement *)aNode).name retain];
[all …]
DCommonTreeNodeStream.m8 // 1. Redistributions of source code must retain the above copyright
58 adaptor = [[CommonTreeAdaptor newTreeAdaptor] retain];
59 root = [theTree retain];
60 navigationNodeEOF = [[adaptor createTree:TokenTypeEOF Text:@"EOF"] retain]; // set EOF
61 it = [[TreeIterator newANTRLTreeIteratorWithAdaptor:adaptor andTree:root] retain];
62 calls = [[IntArray newArrayWithLen:INITIAL_CALL_STACK_SIZE] retain];
73 adaptor = [anAdaptor retain];
74 root = [theTree retain];
75 navigationNodeEOF = [[adaptor createTree:TokenTypeEOF Text:@"EOF"] retain]; // set EOF
77 it = [[TreeIterator newANTRLTreeIteratorWithAdaptor:adaptor andTree:root] retain];
[all …]
/external/clang/test/Index/
Dretain-comments-from-system-headers.c3 #include "retain-comments-from-system-headers.h"
13 …all %s -fretain-comments-from-system-headers -I %S/Inputs | FileCheck %s -check-prefix=CHECK-RETAIN
16 …puts -fmodules -fmodules-cache-path=%t/cache -fmodule-map-file=%S/Inputs/retain-comments-from-syst…
17 …che -fmodule-map-file=%S/Inputs/retain-comments-from-system-headers-module.map | FileCheck %s -che…
19 // CHECK: retain-comments-from-system-headers.h:7:5: FunctionDecl=system_function:7:5 Extent=[7:1 -…
20 // CHECK: retain-comments-from-system-headers.c:9:5: FunctionDecl=user_function:9:5 RawComment=[/**…
22 // CHECK-RETAIN: retain-comments-from-system-headers.h:7:5: FunctionDecl=system_function:7:5 RawCom…
23 // CHECK-RETAIN: retain-comments-from-system-headers.c:9:5: FunctionDecl=user_function:9:5 RawComme…
/external/cronet/base/mac/
Dscoped_typeref.h14 // of a reference to any type that is maintained by Retain and Release methods.
16 // The Traits structure must provide the Retain and Release methods for type T.
24 // static CGLContextObj Retain(CGLContextObj object) {
41 // ownership of the object (and should not call Retain in initialization) or if
43 // Retain in initialization). This behavior is based on the |policy| parameter,
44 // with |ASSUME| for the former and |RETAIN| for the latter. The default policy
59 if (object_ && policy == base::scoped_policy::RETAIN) in object_()
60 object_ = Traits::Retain(object_); in object_()
66 object_ = Traits::Retain(object_); in ScopedTypeRef()
74 object_ = Traits::Retain(object_); in ScopedTypeRef()
[all …]
/external/cronet/base/allocator/partition_allocator/partition_alloc_base/mac/
Dscoped_typeref.h14 // of a reference to any type that is maintained by Retain and Release methods.
16 // The Traits structure must provide the Retain and Release methods for type T.
24 // static CGLContextObj Retain(CGLContextObj object) {
41 // ownership of the object (and should not call Retain in initialization) or if
43 // Retain in initialization). This behavior is based on the |policy| parameter,
44 // with |ASSUME| for the former and |RETAIN| for the latter. The default policy
59 if (object_ && policy == base::scoped_policy::RETAIN) in object_()
60 object_ = Traits::Retain(object_); in object_()
65 object_ = Traits::Retain(object_); in ScopedTypeRef()
73 object_ = Traits::Retain(object_); in ScopedTypeRef()
[all …]
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCContract.cpp83 bool optimizeRetainCall(Function &F, Instruction *Retain);
113 bool ObjCARCContract::optimizeRetainCall(Function &F, Instruction *Retain) { in optimizeRetainCall() argument
114 ImmutableCallSite CS(GetArgRCIdentityRoot(Retain)); in optimizeRetainCall()
118 if (Call->getParent() != Retain->getParent()) in optimizeRetainCall()
121 // Check that the call is next to the retain. in optimizeRetainCall()
125 if (&*I != Retain) in optimizeRetainCall()
134 "return value.\nOld: "<< *Retain << "\n"); in optimizeRetainCall()
137 // retain/retainRV have the same properties. in optimizeRetainCall()
139 cast<CallInst>(Retain)->setCalledFunction(Decl); in optimizeRetainCall()
141 DEBUG(dbgs() << "New: " << *Retain << "\n"); in optimizeRetainCall()
[all …]
/external/python/cpython3/Mac/PythonLauncher/
DFileSettings.m63 return [cur retain];
71 interpreter = [source->interpreter retain];
79 others = [source->others retain];
80 scriptargs = [source->scriptargs retain];
83 if (prefskey) [prefskey retain];
94 origsource = [defaults retain];
113 path] retain];
122 interpreter = [@"no default found" retain];
132 interpreter = [filename retain];
137 interpreter = [@"no default found" retain];
[all …]
/external/python/cpython2/Mac/PythonLauncher/
DFileSettings.m63 return [cur retain];
71 interpreter = [source->interpreter retain];
79 others = [source->others retain];
80 scriptargs = [source->scriptargs retain];
83 if (prefskey) [prefskey retain];
94 origsource = [defaults retain];
113 path] retain];
122 interpreter = [@"no default found" retain];
132 interpreter = [filename retain];
137 interpreter = [@"no default found" retain];
[all …]
/external/webrtc/sdk/objc/helpers/
Dscoped_cftyperef.h18 // RETAIN: ScopedTypeRef should retain the object when it takes
22 enum class RetainPolicy { RETAIN, ASSUME }; enumerator
29 static T Retain(T ref) { in Retain() function
41 if (ptr_ && policy == RetainPolicy::RETAIN) in ScopedTypeRef()
42 Traits::Retain(ptr_); in ScopedTypeRef()
47 ptr_ = Traits::Retain(ptr_); in ScopedTypeRef()
70 reset(rhs.get(), RetainPolicy::RETAIN);
82 if (ptr && policy == RetainPolicy::RETAIN)
83 Traits::Retain(ptr);
106 return ScopedCFTypeRef<T>(cftype, RetainPolicy::RETAIN); in AdoptCF()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/
DObjCARCContract.cpp90 bool optimizeRetainCall(Function &F, Instruction *Retain);
121 bool ObjCARCContract::optimizeRetainCall(Function &F, Instruction *Retain) { in optimizeRetainCall() argument
122 ImmutableCallSite CS(GetArgRCIdentityRoot(Retain)); in optimizeRetainCall()
126 if (Call->getParent() != Retain->getParent()) in optimizeRetainCall()
129 // Check that the call is next to the retain. in optimizeRetainCall()
133 if (&*I != Retain) in optimizeRetainCall()
144 << *Retain << "\n"); in optimizeRetainCall()
147 // retain/retainRV have the same properties. in optimizeRetainCall()
149 cast<CallInst>(Retain)->setCalledFunction(Decl); in optimizeRetainCall()
151 LLVM_DEBUG(dbgs() << "New: " << *Retain << "\n"); in optimizeRetainCall()
[all …]
/external/antlr/runtime/ObjC/Framework/examples/treeparser/
DLangParser.m50 return [[[LangParser_start_return alloc] init] retain];
69 if (aTree != nil) [aTree retain];
88 return [[[LangParser_decl_return alloc] init] retain];
107 if (aTree != nil) [aTree retain];
126 return [[[LangParser_type_return alloc] init] retain];
145 if (aTree != nil) [aTree retain];
178 …itSetWithBits:(const unsigned long long *)FOLLOW_decl_in_start41_data Count:(NSUInteger)1] retain];
179 …BitSetWithBits:(const unsigned long long *)FOLLOW_type_in_decl50_data Count:(NSUInteger)1] retain];
180 …ewBitSetWithBits:(const unsigned long long *)FOLLOW_ID_in_decl52_data Count:(NSUInteger)1] retain];
181 …ewBitSetWithBits:(const unsigned long long *)FOLLOW_10_in_decl54_data Count:(NSUInteger)1] retain];
[all …]
/external/antlr/runtime/ObjC/Framework/test/runtime/token/
DCommonTokenTest.m17 CommonToken *token = [[CommonToken newToken] retain];
24 CommonToken *token = [[CommonToken eofToken] retain];
32 CommonToken *token = [[CommonToken newToken:TokenTypeUP] retain];
43 CommonToken *token = [[CommonToken newToken:TokenTypeUP Text:@"<UP>"] retain];
53 … = [[ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||separated||csv"] retain];
54 …token = [[CommonToken newToken:stream Type:555 Channel:TokenChannelDefault Start:4 Stop:5] retain];
65 … = [[ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||separated||csv"] retain];
66 …token = [[CommonToken newToken:stream Type:555 Channel:TokenChannelDefault Start:4 Stop:5] retain];
72 CommonToken *newToken = [[CommonToken newTokenWithToken:token] retain];
90 … = [[ANTLRStringStream newANTLRStringStream:@"this||is||a||double||piped||separated||csv"] retain];
[all …]

12345678910>>...470