Lines Matching refs:atLoc

130       SourceLocation atLoc = SourceLocation::getFromRawEncoding(I->first);  in doTransform()  local
138 rewriteProperty(props, atLoc); in doTransform()
148 SourceLocation atLoc = SourceLocation::getFromRawEncoding(I->first); in doTransform() local
151 doActionForExtensionProp(props, atLoc); in doTransform()
157 PropsTy &props, SourceLocation atLoc, in doPropAction() argument
168 MigrateCtx.rewritePropertyAttribute("retain", toAttr, atLoc); in doPropAction()
172 return removeAssignForDefaultStrong(props, atLoc); in doPropAction()
174 return rewriteAssign(props, atLoc); in doPropAction()
176 return maybeAddWeakOrUnsafeUnretainedAttr(props, atLoc); in doPropAction()
180 void doActionForExtensionProp(PropsTy &props, SourceLocation atLoc) { in doActionForExtensionProp() argument
186 doPropAction(I->second, props, atLoc, false); in doActionForExtensionProp()
189 void rewriteProperty(PropsTy &props, SourceLocation atLoc) { in rewriteProperty() argument
200 return doPropAction(PropAction_RetainReplacedWithStrong, props, atLoc); in rewriteProperty()
207 return doPropAction(PropAction_AssignRemoved, props, atLoc); in rewriteProperty()
208 return doPropAction(PropAction_AssignRewritten, props, atLoc); in rewriteProperty()
212 (Pass.isGCMigration() && !hasGCWeak(props, atLoc))) in rewriteProperty()
215 return doPropAction(PropAction_MaybeAddWeakOrUnsafe, props, atLoc); in rewriteProperty()
219 SourceLocation atLoc) const { in removeAssignForDefaultStrong()
220 removeAttribute("retain", atLoc); in removeAssignForDefaultStrong()
221 if (!removeAttribute("assign", atLoc)) in removeAssignForDefaultStrong()
233 void rewriteAssign(PropsTy &props, SourceLocation atLoc) const { in rewriteAssign()
237 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" : in rewriteAssign()
240 bool rewroteAttr = rewriteAttribute("assign", toWhich, atLoc); in rewriteAssign()
249 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "__strong " : in rewriteAssign()
263 SourceLocation atLoc) const { in maybeAddWeakOrUnsafeUnretainedAttr()
268 atLoc); in maybeAddWeakOrUnsafeUnretainedAttr()
291 bool removeAttribute(StringRef fromAttr, SourceLocation atLoc) const { in removeAttribute()
292 return MigrateCtx.removePropertyAttribute(fromAttr, atLoc); in removeAttribute()
296 SourceLocation atLoc) const { in rewriteAttribute()
297 return MigrateCtx.rewritePropertyAttribute(fromAttr, toAttr, atLoc); in rewriteAttribute()
300 bool addAttribute(StringRef attr, SourceLocation atLoc) const { in addAttribute()
301 return MigrateCtx.addPropertyAttribute(attr, atLoc); in addAttribute()
352 bool hasGCWeak(PropsTy &props, SourceLocation atLoc) const { in hasGCWeak()
357 return MigrateCtx.AtPropsWeak.count(atLoc.getRawEncoding()); in hasGCWeak()