Lines Matching defs:Loc
87 SourceLocation Loc = TL.getAttrNameLoc();
88 unsigned RawLoc = Loc.getRawEncoding();
94 if (Loc.isMacroID())
95 Loc = SM.getImmediateExpansionRange(Loc).first;
116 Attr.Loc = Loc;
175 bool isInMainFile(SourceLocation Loc) {
176 if (Loc.isInvalid())
180 return SM.isInFileID(SM.getExpansionLoc(Loc), SM.getMainFileID());
196 Attr.Loc);
214 if (!MigrateCtx.RemovedAttrSet.count(Attr.Loc.getRawEncoding()))
215 TA.replaceText(Attr.Loc, "__weak", "__unsafe_unretained");
218 Attr.Loc);
291 SourceLocation Loc = ATLs[i].first.getAttrNameLoc();
292 if (Loc.isMacroID())
293 Loc = MigrateCtx.Pass.Ctx.getSourceManager()
294 .getImmediateExpansionRange(Loc).first;
295 TA.remove(Loc);
299 MigrateCtx.RemovedAttrSet.insert(Loc.getRawEncoding());
346 Attr.Loc.dump(Pass.Ctx.getSourceManager());