Home | History | Annotate | Download | only in ARCMigrate

Lines Matching refs:atLoc

131       SourceLocation atLoc = SourceLocation::getFromRawEncoding(I->first);
139 rewriteProperty(props, atLoc);
151 SourceLocation atLoc = SourceLocation::getFromRawEncoding(I->first);
154 doActionForExtensionProp(props, atLoc);
160 PropsTy &props, SourceLocation atLoc,
171 MigrateCtx.rewritePropertyAttribute("retain", toAttr, atLoc);
175 return removeAssignForDefaultStrong(props, atLoc);
177 return rewriteAssign(props, atLoc);
179 return maybeAddWeakOrUnsafeUnretainedAttr(props, atLoc);
183 void doActionForExtensionProp(PropsTy &props, SourceLocation atLoc) {
189 doPropAction(I->second, props, atLoc, false);
192 void rewriteProperty(PropsTy &props, SourceLocation atLoc) {
203 return doPropAction(PropAction_RetainReplacedWithStrong, props, atLoc);
210 return doPropAction(PropAction_AssignRemoved, props, atLoc);
211 return doPropAction(PropAction_AssignRewritten, props, atLoc);
215 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)))
218 return doPropAction(PropAction_MaybeAddWeakOrUnsafe, props, atLoc);
222 SourceLocation atLoc) const {
223 removeAttribute("retain", atLoc);
224 if (!removeAttribute("assign", atLoc))
234 void rewriteAssign(PropsTy &props, SourceLocation atLoc) const {
238 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" :
241 bool rewroteAttr = rewriteAttribute("assign", toWhich, atLoc);
250 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "__strong " :
262 SourceLocation atLoc) const {
267 atLoc);
288 bool removeAttribute(StringRef fromAttr, SourceLocation atLoc) const {
289 return MigrateCtx.removePropertyAttribute(fromAttr, atLoc);
293 SourceLocation atLoc) const {
294 return MigrateCtx.rewritePropertyAttribute(fromAttr, toAttr, atLoc);
297 bool addAttribute(StringRef attr, SourceLocation atLoc) const {
298 return MigrateCtx.addPropertyAttribute(attr, atLoc);
366 bool hasGCWeak(PropsTy &props, SourceLocation atLoc) const {
371 return MigrateCtx.AtPropsWeak.count(atLoc.getRawEncoding());