Lines Matching refs:atLoc

132       SourceLocation atLoc = I->first;  in doTransform()  local
140 rewriteProperty(props, atLoc); in doTransform()
146 PropsTy &props, SourceLocation atLoc, in doPropAction() argument
157 MigrateCtx.rewritePropertyAttribute("retain", toAttr, atLoc); 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
180 return doPropAction(PropAction_RetainReplacedWithStrong, props, atLoc); 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()
199 SourceLocation atLoc) const { in removeAssignForDefaultStrong()
200 removeAttribute("retain", atLoc); in removeAssignForDefaultStrong()
201 if (!removeAttribute("assign", atLoc)) in removeAssignForDefaultStrong()
213 void rewriteAssign(PropsTy &props, SourceLocation atLoc) const { in rewriteAssign()
217 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" : in rewriteAssign()
220 bool rewroteAttr = rewriteAttribute("assign", toWhich, atLoc); in rewriteAssign()
229 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "__strong " : in rewriteAssign()
243 SourceLocation atLoc) const { in maybeAddWeakOrUnsafeUnretainedAttr()
248 atLoc); in maybeAddWeakOrUnsafeUnretainedAttr()
271 bool removeAttribute(StringRef fromAttr, SourceLocation atLoc) const { in removeAttribute()
272 return MigrateCtx.removePropertyAttribute(fromAttr, atLoc); in removeAttribute()
276 SourceLocation atLoc) const { in rewriteAttribute()
277 return MigrateCtx.rewritePropertyAttribute(fromAttr, toAttr, atLoc); in rewriteAttribute()
280 bool addAttribute(StringRef attr, SourceLocation atLoc) const { in addAttribute()
281 return MigrateCtx.addPropertyAttribute(attr, atLoc); in addAttribute()
335 bool hasGCWeak(PropsTy &props, SourceLocation atLoc) const { in hasGCWeak()
340 return MigrateCtx.AtPropsWeak.count(atLoc); in hasGCWeak()