Home | History | Annotate | Download | only in ARCMigrate

Lines Matching refs:atLoc

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