Lines Matching refs:atLoc
131 SourceLocation atLoc = SourceLocation::getFromRawEncoding(I->first);
139 rewriteProperty(props, atLoc);
153 SourceLocation atLoc = SourceLocation::getFromRawEncoding(I->first);
156 doActionForExtensionProp(props, atLoc);
162 PropsTy &props, SourceLocation atLoc,
173 MigrateCtx.rewritePropertyAttribute("retain", toAttr, atLoc);
177 return removeAssignForDefaultStrong(props, atLoc);
179 return rewriteAssign(props, atLoc);
181 return maybeAddWeakOrUnsafeUnretainedAttr(props, atLoc);
185 void doActionForExtensionProp(PropsTy &props, SourceLocation atLoc) {
191 doPropAction(I->second, props, atLoc, false);
194 void rewriteProperty(PropsTy &props, SourceLocation atLoc) {
205 return doPropAction(PropAction_RetainReplacedWithStrong, props, atLoc);
212 return doPropAction(PropAction_AssignRemoved, props, atLoc);
213 return doPropAction(PropAction_AssignRewritten, props, atLoc);
217 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)))
220 return doPropAction(PropAction_MaybeAddWeakOrUnsafe, props, atLoc);
224 SourceLocation atLoc) const {
225 removeAttribute("retain", atLoc);
226 if (!removeAttribute("assign", atLoc))
238 void rewriteAssign(PropsTy &props, SourceLocation atLoc) const {
242 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" :
245 bool rewroteAttr = rewriteAttribute("assign", toWhich, atLoc);
254 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "__strong " :
268 SourceLocation atLoc) const {
273 atLoc);
296 bool removeAttribute(StringRef fromAttr, SourceLocation atLoc) const {
297 return MigrateCtx.removePropertyAttribute(fromAttr, atLoc);
301 SourceLocation atLoc) const {
302 return MigrateCtx.rewritePropertyAttribute(fromAttr, toAttr, atLoc);
305 bool addAttribute(StringRef attr, SourceLocation atLoc) const {
306 return MigrateCtx.addPropertyAttribute(attr, atLoc);
365 bool hasGCWeak(PropsTy &props, SourceLocation atLoc) const {
370 return MigrateCtx.AtPropsWeak.count(atLoc.getRawEncoding());