Lines Matching refs:atLoc
134 SourceLocation atLoc = SourceLocation::getFromRawEncoding(I->first); in doTransform() local
142 rewriteProperty(props, atLoc); in doTransform()
148 PropsTy &props, SourceLocation atLoc, in doPropAction() argument
159 MigrateCtx.rewritePropertyAttribute("retain", toAttr, atLoc); 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
182 return doPropAction(PropAction_RetainReplacedWithStrong, props, atLoc); 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()
201 SourceLocation atLoc) const { in removeAssignForDefaultStrong()
202 removeAttribute("retain", atLoc); in removeAssignForDefaultStrong()
203 if (!removeAttribute("assign", atLoc)) in removeAssignForDefaultStrong()
215 void rewriteAssign(PropsTy &props, SourceLocation atLoc) const { in rewriteAssign()
219 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" : in rewriteAssign()
222 bool rewroteAttr = rewriteAttribute("assign", toWhich, atLoc); in rewriteAssign()
231 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "__strong " : in rewriteAssign()
245 SourceLocation atLoc) const { in maybeAddWeakOrUnsafeUnretainedAttr()
250 atLoc); in maybeAddWeakOrUnsafeUnretainedAttr()
273 bool removeAttribute(StringRef fromAttr, SourceLocation atLoc) const { in removeAttribute()
274 return MigrateCtx.removePropertyAttribute(fromAttr, atLoc); in removeAttribute()
278 SourceLocation atLoc) const { in rewriteAttribute()
279 return MigrateCtx.rewritePropertyAttribute(fromAttr, toAttr, atLoc); in rewriteAttribute()
282 bool addAttribute(StringRef attr, SourceLocation atLoc) const { in addAttribute()
283 return MigrateCtx.addPropertyAttribute(attr, atLoc); in addAttribute()
334 bool hasGCWeak(PropsTy &props, SourceLocation atLoc) const { in hasGCWeak()
339 return MigrateCtx.AtPropsWeak.count(atLoc.getRawEncoding()); in hasGCWeak()