• Home
  • Raw
  • Download

Lines Matching full:props

86       PropsTy &props = AtProps[RawLoc];  in collectProperties()  local
87 props.push_back(Prop); in collectProperties()
122 PropsTy &props = findAtLoc->second; in doTransform() local
123 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) { in doTransform()
135 PropsTy &props = I->second; in doTransform() local
136 if (!getPropertyType(props)->isObjCRetainableType()) in doTransform()
138 if (hasIvarWithExplicitARCOwnership(props)) in doTransform()
142 rewriteProperty(props, atLoc); in doTransform()
148 PropsTy &props, SourceLocation atLoc, in doPropAction() argument
151 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) in doPropAction()
163 return removeAssignForDefaultStrong(props, atLoc); in doPropAction()
165 return rewriteAssign(props, atLoc); in doPropAction()
167 return maybeAddWeakOrUnsafeUnretainedAttr(props, atLoc); in doPropAction()
171 void rewriteProperty(PropsTy &props, SourceLocation atLoc) { in rewriteProperty() argument
172 ObjCPropertyDecl::PropertyAttributeKind propAttrs = getPropertyAttrs(props); in rewriteProperty()
182 return doPropAction(PropAction_RetainReplacedWithStrong, props, atLoc); in rewriteProperty()
185 bool HasIvarAssignedAPlusOneObject = hasIvarAssignedAPlusOneObject(props); in rewriteProperty()
189 return doPropAction(PropAction_AssignRemoved, props, atLoc); in rewriteProperty()
190 return doPropAction(PropAction_AssignRewritten, props, atLoc); in rewriteProperty()
194 (Pass.isGCMigration() && !hasGCWeak(props, atLoc))) in rewriteProperty()
197 return doPropAction(PropAction_MaybeAddWeakOrUnsafe, props, atLoc); in rewriteProperty()
200 void removeAssignForDefaultStrong(PropsTy &props, in removeAssignForDefaultStrong() argument
206 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) { in removeAssignForDefaultStrong()
215 void rewriteAssign(PropsTy &props, SourceLocation atLoc) const { in rewriteAssign() argument
216 bool canUseWeak = canApplyWeak(Pass.Ctx, getPropertyType(props), in rewriteAssign()
219 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" : in rewriteAssign()
226 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) { in rewriteAssign()
231 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "__strong " : in rewriteAssign()
244 void maybeAddWeakOrUnsafeUnretainedAttr(PropsTy &props, in maybeAddWeakOrUnsafeUnretainedAttr() argument
246 bool canUseWeak = canApplyWeak(Pass.Ctx, getPropertyType(props), in maybeAddWeakOrUnsafeUnretainedAttr()
254 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) { in maybeAddWeakOrUnsafeUnretainedAttr()
305 bool hasIvarAssignedAPlusOneObject(PropsTy &props) const { in hasIvarAssignedAPlusOneObject()
306 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) { in hasIvarAssignedAPlusOneObject()
316 bool hasIvarWithExplicitARCOwnership(PropsTy &props) const { in hasIvarWithExplicitARCOwnership()
320 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) { in hasIvarWithExplicitARCOwnership()
334 bool hasGCWeak(PropsTy &props, SourceLocation atLoc) const { in hasGCWeak() argument
337 if (props.empty()) in hasGCWeak()
346 QualType getPropertyType(PropsTy &props) const { in getPropertyType()
347 assert(!props.empty()); in getPropertyType()
348 QualType ty = props[0].PropD->getType().getUnqualifiedType(); in getPropertyType()
351 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) in getPropertyType()
359 getPropertyAttrs(PropsTy &props) const { in getPropertyAttrs()
360 assert(!props.empty()); in getPropertyAttrs()
362 attrs = props[0].PropD->getPropertyAttributesAsWritten(); in getPropertyAttrs()
365 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) in getPropertyAttrs()