Home | History | Annotate | Download | only in ARCMigrate

Lines Matching defs:atLoc

134       SourceLocation atLoc = SourceLocation::getFromRawEncoding(I->first);
142 rewriteProperty(props, atLoc);
148 PropsTy &props, SourceLocation atLoc,
159 MigrateCtx.rewritePropertyAttribute("retain", toAttr, atLoc);
163 return removeAssignForDefaultStrong(props, atLoc);
165 return rewriteAssign(props, atLoc);
167 return maybeAddWeakOrUnsafeUnretainedAttr(props, atLoc);
171 void rewriteProperty(PropsTy &props, SourceLocation atLoc) {
182 return doPropAction(PropAction_RetainReplacedWithStrong, props, atLoc);
189 return doPropAction(PropAction_AssignRemoved, props, atLoc);
190 return doPropAction(PropAction_AssignRewritten, props, atLoc);
194 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)))
197 return doPropAction(PropAction_MaybeAddWeakOrUnsafe, props, atLoc);
201 SourceLocation atLoc) const {
202 removeAttribute("retain", atLoc);
203 if (!removeAttribute("assign", atLoc))
215 void rewriteAssign(PropsTy &props, SourceLocation atLoc) const {
219 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" :
222 bool rewroteAttr = rewriteAttribute("assign", toWhich, atLoc);
231 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "__strong " :
245 SourceLocation atLoc) const {
250 atLoc);
273 bool removeAttribute(StringRef fromAttr, SourceLocation atLoc) const {
274 return MigrateCtx.removePropertyAttribute(fromAttr, atLoc);
278 SourceLocation atLoc) const {
279 return MigrateCtx.rewritePropertyAttribute(fromAttr, toAttr, atLoc);
282 bool addAttribute(StringRef attr, SourceLocation atLoc) const {
283 return MigrateCtx.addPropertyAttribute(attr, atLoc);
334 bool hasGCWeak(PropsTy &props, SourceLocation atLoc) const {
339 return MigrateCtx.AtPropsWeak.count(atLoc.getRawEncoding());