Lines Matching full:props
85 PropsTy &props = AtProps[Loc]; in collectProperties() local
86 props.push_back(Prop); in collectProperties()
120 PropsTy &props = findAtLoc->second; in doTransform() local
121 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) { in doTransform()
133 PropsTy &props = I->second; in doTransform() local
134 if (!getPropertyType(props)->isObjCRetainableType()) in doTransform()
136 if (hasIvarWithExplicitARCOwnership(props)) in doTransform()
140 rewriteProperty(props, atLoc); in doTransform()
146 PropsTy &props, SourceLocation atLoc, in doPropAction() argument
149 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) in doPropAction()
161 return removeAssignForDefaultStrong(props, atLoc); in doPropAction()
163 return rewriteAssign(props, atLoc); in doPropAction()
165 return maybeAddWeakOrUnsafeUnretainedAttr(props, atLoc); in doPropAction()
169 void rewriteProperty(PropsTy &props, SourceLocation atLoc) { in rewriteProperty() argument
170 ObjCPropertyAttribute::Kind propAttrs = getPropertyAttrs(props); in rewriteProperty()
180 return doPropAction(PropAction_RetainReplacedWithStrong, props, atLoc); in rewriteProperty()
183 bool HasIvarAssignedAPlusOneObject = hasIvarAssignedAPlusOneObject(props); in rewriteProperty()
187 return doPropAction(PropAction_AssignRemoved, props, atLoc); in rewriteProperty()
188 return doPropAction(PropAction_AssignRewritten, props, atLoc); in rewriteProperty()
192 (Pass.isGCMigration() && !hasGCWeak(props, atLoc))) in rewriteProperty()
195 return doPropAction(PropAction_MaybeAddWeakOrUnsafe, props, atLoc); in rewriteProperty()
198 void removeAssignForDefaultStrong(PropsTy &props, in removeAssignForDefaultStrong() argument
204 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) { in removeAssignForDefaultStrong()
213 void rewriteAssign(PropsTy &props, SourceLocation atLoc) const { in rewriteAssign() argument
214 bool canUseWeak = canApplyWeak(Pass.Ctx, getPropertyType(props), in rewriteAssign()
217 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" : in rewriteAssign()
224 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) { in rewriteAssign()
229 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "__strong " : in rewriteAssign()
242 void maybeAddWeakOrUnsafeUnretainedAttr(PropsTy &props, in maybeAddWeakOrUnsafeUnretainedAttr() argument
244 bool canUseWeak = canApplyWeak(Pass.Ctx, getPropertyType(props), in maybeAddWeakOrUnsafeUnretainedAttr()
252 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) { in maybeAddWeakOrUnsafeUnretainedAttr()
306 bool hasIvarAssignedAPlusOneObject(PropsTy &props) const { in hasIvarAssignedAPlusOneObject()
307 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) { in hasIvarAssignedAPlusOneObject()
317 bool hasIvarWithExplicitARCOwnership(PropsTy &props) const { in hasIvarWithExplicitARCOwnership()
321 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) { in hasIvarWithExplicitARCOwnership()
335 bool hasGCWeak(PropsTy &props, SourceLocation atLoc) const { in hasGCWeak() argument
338 if (props.empty()) in hasGCWeak()
347 QualType getPropertyType(PropsTy &props) const { in getPropertyType()
348 assert(!props.empty()); in getPropertyType()
349 QualType ty = props[0].PropD->getType().getUnqualifiedType(); in getPropertyType()
352 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) in getPropertyType()
359 ObjCPropertyAttribute::Kind getPropertyAttrs(PropsTy &props) const { in getPropertyAttrs()
360 assert(!props.empty()); in getPropertyAttrs()
362 props[0].PropD->getPropertyAttributesAsWritten(); in getPropertyAttrs()
365 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) in getPropertyAttrs()