Home
last modified time | relevance | path

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

12345678910>>...878

/aosp_15_r20/external/antlr/runtime/ObjC/Framework/examples/simplecTreeParser/
H A 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 …]
H A DSimpleCWalker.m148 return [[[SimpleCWalker_expr_return alloc] init] retain];
179 …Bits:(const unsigned long long *)FOLLOW_declaration_in_program56_data Count:(NSUInteger)1] retain];
180 …its:(const unsigned long long *)FOLLOW_variable_in_declaration76_data Count:(NSUInteger)1] retain];
181 …ts:(const unsigned long long *)FOLLOW_FUNC_DECL_in_declaration87_data Count:(NSUInteger)1] retain];
182 …onst unsigned long long *)FOLLOW_functionHeader_in_declaration89_data Count:(NSUInteger)1] retain];
183 …ts:(const unsigned long long *)FOLLOW_FUNC_DEF_in_declaration101_data Count:(NSUInteger)1] retain];
184 …nst unsigned long long *)FOLLOW_functionHeader_in_declaration103_data Count:(NSUInteger)1] retain];
185 …hBits:(const unsigned long long *)FOLLOW_block_in_declaration105_data Count:(NSUInteger)1] retain];
186 …thBits:(const unsigned long long *)FOLLOW_VAR_DEF_in_variable126_data Count:(NSUInteger)1] retain];
187 …tWithBits:(const unsigned long long *)FOLLOW_type_in_variable128_data Count:(NSUInteger)1] retain];
[all …]
H A DSimpleCTP.m148 return [[[SimpleCTP_expr_return alloc] init] retain];
179 …Bits:(const unsigned long long *)FOLLOW_declaration_in_program56_data Count:(NSUInteger)1] retain];
180 …its:(const unsigned long long *)FOLLOW_variable_in_declaration76_data Count:(NSUInteger)1] retain];
181 …ts:(const unsigned long long *)FOLLOW_FUNC_DECL_in_declaration87_data Count:(NSUInteger)1] retain];
182 …onst unsigned long long *)FOLLOW_functionHeader_in_declaration89_data Count:(NSUInteger)1] retain];
183 …ts:(const unsigned long long *)FOLLOW_FUNC_DEF_in_declaration101_data Count:(NSUInteger)1] retain];
184 …nst unsigned long long *)FOLLOW_functionHeader_in_declaration103_data Count:(NSUInteger)1] retain];
185 …hBits:(const unsigned long long *)FOLLOW_block_in_declaration105_data Count:(NSUInteger)1] retain];
186 …thBits:(const unsigned long long *)FOLLOW_VAR_DEF_in_variable126_data Count:(NSUInteger)1] retain];
187 …tWithBits:(const unsigned long long *)FOLLOW_type_in_variable128_data Count:(NSUInteger)1] retain];
[all …]
/aosp_15_r20/external/antlr/runtime/ObjC/Framework/examples/polydiff/
H A 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 …]
H A 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 …]
H A 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 …]
/aosp_15_r20/external/clang/test/Analysis/
H A 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 …]
H A 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 …]
/aosp_15_r20/external/clang/test/SemaObjC/
H A 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 …]
H A 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 …]
H A 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…
/aosp_15_r20/external/llvm/lib/Transforms/ObjCARC/
H A 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 …]
H A DObjCARCOpts.cpp133 // The second retain and autorelease can be deleted.
159 // TODO: Delete release+retain pairs (rare).
165 "retain+autoreleases eliminated");
166 STATISTIC(NumRRs, "Number of retain+release paths eliminated");
632 Constant *NewDecl = EP.get(ARCRuntimeEntryPointKind::Retain); in OptimizeRetainRVCall()
833 // Keep track of which of retain, release, autorelease, and retain_block in OptimizeIndividualCalls()
875 case ARCInstKind::Retain: in OptimizeIndividualCalls()
880 // These can't be moved across things that care about the retain in OptimizeIndividualCalls()
970 llvm_unreachable("bottom-up pointer in retain state!"); in CheckForUseCFGHazard()
999 llvm_unreachable("bottom-up pointer in retain state!"); in CheckForCanReleaseCFGHazard()
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/ObjCARC/
H A 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 …]
H A DObjCARCOpts.cpp136 // The second retain and autorelease can be deleted.
162 // TODO: Delete release+retain pairs (rare).
168 "retain+autoreleases eliminated");
169 STATISTIC(NumRRs, "Number of retain+release paths eliminated");
499 /// retain/release pairs should be performed.
553 Instruction * Retain,
643 Function *NewDecl = EP.get(ARCRuntimeEntryPointKind::Retain); in OptimizeRetainRVCall()
1047 // Keep track of which of retain, release, autorelease, and retain_block in OptimizeIndividualCallImpl()
1098 case ARCInstKind::Retain: in OptimizeIndividualCallImpl()
1103 // These can't be moved across things that care about the retain in OptimizeIndividualCallImpl()
[all …]
/aosp_15_r20/external/antlr/runtime/ObjC/Framework/examples/LL-star/
H A DSimpleCParser.m95 return [[[DFA2 alloc] initWithRecognizer:aRecognizer] retain];
283 …Bits:(const unsigned long long *)FOLLOW_declaration_in_program28_data Count:(NSUInteger)1] retain];
284 …its:(const unsigned long long *)FOLLOW_variable_in_declaration50_data Count:(NSUInteger)1] retain];
285 …onst unsigned long long *)FOLLOW_functionHeader_in_declaration60_data Count:(NSUInteger)1] retain];
286 …tWithBits:(const unsigned long long *)FOLLOW_11_in_declaration62_data Count:(NSUInteger)1] retain];
287 …onst unsigned long long *)FOLLOW_functionHeader_in_declaration75_data Count:(NSUInteger)1] retain];
288 …thBits:(const unsigned long long *)FOLLOW_block_in_declaration77_data Count:(NSUInteger)1] retain];
289 …etWithBits:(const unsigned long long *)FOLLOW_type_in_variable99_data Count:(NSUInteger)1] retain];
290 …its:(const unsigned long long *)FOLLOW_declarator_in_variable101_data Count:(NSUInteger)1] retain];
291 …SetWithBits:(const unsigned long long *)FOLLOW_11_in_variable103_data Count:(NSUInteger)1] retain];
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/Transforms/ObjCARC/
H A DObjCARCContract.cpp89 bool optimizeRetainCall(Function &F, Instruction *Retain);
123 bool ObjCARCContract::optimizeRetainCall(Function &F, Instruction *Retain) { in optimizeRetainCall() argument
124 const auto *Call = dyn_cast<CallBase>(GetArgRCIdentityRoot(Retain)); in optimizeRetainCall()
127 if (Call->getParent() != Retain->getParent()) in optimizeRetainCall()
130 // Check that the call is next to the retain. in optimizeRetainCall()
134 if (&*I != Retain) in optimizeRetainCall()
145 << *Retain << "\n"); in optimizeRetainCall()
148 // retain/retainRV have the same properties. in optimizeRetainCall()
150 cast<CallInst>(Retain)->setCalledFunction(Decl); in optimizeRetainCall()
152 LLVM_DEBUG(dbgs() << "New: " << *Retain << "\n"); in optimizeRetainCall()
[all …]
H A DObjCARCOpts.cpp134 // The second retain and autorelease can be deleted.
160 // TODO: Delete release+retain pairs (rare).
166 "retain+autoreleases eliminated");
167 STATISTIC(NumRRs, "Number of retain+release paths eliminated");
497 /// retain/release pairs should be performed.
554 Instruction *Retain,
643 Function *NewDecl = EP.get(ARCRuntimeEntryPointKind::Retain); in OptimizeRetainRVCall()
1054 // Keep track of which of retain, release, autorelease, and retain_block in OptimizeIndividualCallImpl()
1104 case ARCInstKind::Retain: in OptimizeIndividualCallImpl()
1109 // These can't be moved across things that care about the retain in OptimizeIndividualCallImpl()
[all …]
/aosp_15_r20/external/clang/test/ARCMT/
H A 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 …]
/aosp_15_r20/external/openthread/src/core/common/
H A 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 * 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 …]
/aosp_15_r20/external/antlr/runtime/ObjC/Framework/examples/treeparser/
H A 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 …]
/aosp_15_r20/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 …]
/aosp_15_r20/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 …]
/aosp_15_r20/external/antlr/runtime/ObjC/Framework/
H A 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 …]
H A DBufferedTreeNodeStream.m12 // 1. Redistributions of source code must retain the above copyright
115 adaptor = [[[CommonTreeAdaptor alloc] init] retain];
116 nodes = [[AMutableArray arrayWithCapacity:DEFAULT_INITIAL_BUFFER_SIZE] retain];
117 down = [[adaptor createTree:TokenTypeDOWN Text:@"DOWN"] retain];
118 up = [[adaptor createTree:TokenTypeUP Text:@"UP"] retain];
119 eof = [[adaptor createTree:TokenTypeEOF Text:@"EOF"] retain];
132 adaptor = [[[CommonTreeAdaptor alloc] init] retain];
133 nodes = [[AMutableArray arrayWithCapacity:DEFAULT_INITIAL_BUFFER_SIZE] retain];
134 down = [[adaptor createTree:TokenTypeDOWN Text:@"DOWN"] retain];
135 up = [[adaptor createTree:TokenTypeUP Text:@"UP"] retain];
[all …]

12345678910>>...878