• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/clang/lib/ARCMigrate/

Lines Matching refs:atLoc

133       SourceLocation atLoc = SourceLocation::getFromRawEncoding(I->first);
141 rewriteProperty(props, atLoc);
147 PropsTy &props, SourceLocation atLoc,
158 MigrateCtx.rewritePropertyAttribute("retain", toAttr, atLoc);
162 return removeAssignForDefaultStrong(props, atLoc);
164 return rewriteAssign(props, atLoc);
166 return maybeAddWeakOrUnsafeUnretainedAttr(props, atLoc);
170 void rewriteProperty(PropsTy &props, SourceLocation atLoc) {
181 return doPropAction(PropAction_RetainReplacedWithStrong, props, atLoc);
188 return doPropAction(PropAction_AssignRemoved, props, atLoc);
189 return doPropAction(PropAction_AssignRewritten, props, atLoc);
193 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)))
196 return doPropAction(PropAction_MaybeAddWeakOrUnsafe, props, atLoc);
200 SourceLocation atLoc) const {
201 removeAttribute("retain", atLoc);
202 if (!removeAttribute("assign", atLoc))
214 void rewriteAssign(PropsTy &props, SourceLocation atLoc) const {
218 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" :
221 bool rewroteAttr = rewriteAttribute("assign", toWhich, atLoc);
230 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "__strong " :
244 SourceLocation atLoc) const {
249 atLoc);
272 bool removeAttribute(StringRef fromAttr, SourceLocation atLoc) const {
273 return MigrateCtx.removePropertyAttribute(fromAttr, atLoc);
277 SourceLocation atLoc) const {
278 return MigrateCtx.rewritePropertyAttribute(fromAttr, toAttr, atLoc);
281 bool addAttribute(StringRef attr, SourceLocation atLoc) const {
282 return MigrateCtx.addPropertyAttribute(attr, atLoc);
333 bool hasGCWeak(PropsTy &props, SourceLocation atLoc) const {
338 return MigrateCtx.AtPropsWeak.count(atLoc.getRawEncoding());