Home | History | Annotate | Download | only in ARCMigrate

Lines Matching refs:props

87       PropsTy &props = AtProps[RawLoc];
88 props.push_back(*propI);
119 PropsTy &props = findAtLoc->second;
120 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
132 PropsTy &props = I->second;
133 if (!getPropertyType(props)->isObjCRetainableType())
135 if (hasIvarWithExplicitARCOwnership(props))
139 rewriteProperty(props, atLoc);
154 PropsTy &props = I->second;
156 doActionForExtensionProp(props, atLoc);
162 PropsTy &props, SourceLocation atLoc,
165 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I)
177 return removeAssignForDefaultStrong(props, atLoc);
179 return rewriteAssign(props, atLoc);
181 return maybeAddWeakOrUnsafeUnretainedAttr(props, atLoc);
185 void doActionForExtensionProp(PropsTy &props, SourceLocation atLoc) {
187 I = ActionOnProp.find(props[0].PropD->getIdentifier());
191 doPropAction(I->second, props, atLoc, false);
194 void rewriteProperty(PropsTy &props, SourceLocation atLoc) {
195 ObjCPropertyDecl::PropertyAttributeKind propAttrs = getPropertyAttrs(props);
205 return doPropAction(PropAction_RetainReplacedWithStrong, props, atLoc);
208 bool HasIvarAssignedAPlusOneObject = hasIvarAssignedAPlusOneObject(props);
212 return doPropAction(PropAction_AssignRemoved, props, atLoc);
213 return doPropAction(PropAction_AssignRewritten, props, atLoc);
217 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)))
220 return doPropAction(PropAction_MaybeAddWeakOrUnsafe, props, atLoc);
223 void removeAssignForDefaultStrong(PropsTy &props,
229 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
238 void rewriteAssign(PropsTy &props, SourceLocation atLoc) const {
239 bool canUseWeak = canApplyWeak(Pass.Ctx, getPropertyType(props),
242 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" :
249 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
254 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "__strong " :
267 void maybeAddWeakOrUnsafeUnretainedAttr(PropsTy &props,
269 bool canUseWeak = canApplyWeak(Pass.Ctx, getPropertyType(props),
277 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
328 bool hasIvarAssignedAPlusOneObject(PropsTy &props) const {
329 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
339 bool hasIvarWithExplicitARCOwnership(PropsTy &props) const {
343 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
356 bool hasAllIvarsBacked(PropsTy &props) const {
357 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I)
365 bool hasGCWeak(PropsTy &props, SourceLocation atLoc) const {
368 if (props.empty())
377 QualType getPropertyType(PropsTy &props) const {
378 assert(!props.empty());
379 QualType ty = props[0].PropD->getType().getUnqualifiedType();
382 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I)
390 getPropertyAttrs(PropsTy &props) const {
391 assert(!props.empty());
393 attrs = props[0].PropD->getPropertyAttributesAsWritten();
396 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I)