• Home
  • Raw
  • Download

Lines Matching refs:MigrateCtx

28   MigrationContext &MigrateCtx;  member in __anonc53dc60a0111::GCAttrsCollector
36 : MigrateCtx(ctx), FullyMigratable(false), in GCAttrsCollector()
89 if (MigrateCtx.AttrSet.count(RawLoc)) in handleAttr()
92 ASTContext &Ctx = MigrateCtx.Pass.Ctx; in handleAttr()
111 MigrateCtx.AttrSet.insert(RawLoc); in handleAttr()
112 MigrateCtx.GCAttrs.push_back(MigrationContext::GCAttrOccurrence()); in handleAttr()
113 MigrationContext::GCAttrOccurrence &Attr = MigrateCtx.GCAttrs.back(); in handleAttr()
177 SourceManager &SM = MigrateCtx.Pass.Ctx.getSourceManager(); in isInMainFile()
184 static void errorForGCAttrsOnNonObjC(MigrationContext &MigrateCtx) { in errorForGCAttrsOnNonObjC() argument
185 TransformActions &TA = MigrateCtx.Pass.TA; in errorForGCAttrsOnNonObjC()
187 for (unsigned i = 0, e = MigrateCtx.GCAttrs.size(); i != e; ++i) { in errorForGCAttrsOnNonObjC()
188 MigrationContext::GCAttrOccurrence &Attr = MigrateCtx.GCAttrs[i]; in errorForGCAttrsOnNonObjC()
200 static void checkWeakGCAttrs(MigrationContext &MigrateCtx) { in checkWeakGCAttrs() argument
201 TransformActions &TA = MigrateCtx.Pass.TA; in checkWeakGCAttrs()
203 for (unsigned i = 0, e = MigrateCtx.GCAttrs.size(); i != e; ++i) { in checkWeakGCAttrs()
204 MigrationContext::GCAttrOccurrence &Attr = MigrateCtx.GCAttrs[i]; in checkWeakGCAttrs()
209 if (!canApplyWeak(MigrateCtx.Pass.Ctx, Attr.ModifiedType, in checkWeakGCAttrs()
212 if (!MigrateCtx.RemovedAttrSet.count(Attr.Loc.getRawEncoding())) in checkWeakGCAttrs()
224 static void checkAllAtProps(MigrationContext &MigrateCtx, in checkAllAtProps() argument
265 TransformActions &TA = MigrateCtx.Pass.TA; in checkAllAtProps()
271 MigrateCtx.AtPropsWeak.insert(AtLoc.getRawEncoding()); in checkAllAtProps()
276 if (canApplyWeak(MigrateCtx.Pass.Ctx, IndProps.front()->getType(), in checkAllAtProps()
283 MigrateCtx.rewritePropertyAttribute("assign", toAttr, AtLoc); in checkAllAtProps()
285 MigrateCtx.addPropertyAttribute(toAttr, AtLoc); in checkAllAtProps()
291 Loc = MigrateCtx.Pass.Ctx.getSourceManager() in checkAllAtProps()
297 MigrateCtx.RemovedAttrSet.insert(Loc.getRawEncoding()); in checkAllAtProps()
301 static void checkAllProps(MigrationContext &MigrateCtx, in checkAllProps() argument
323 checkAllAtProps(MigrateCtx, AtLoc, IndProps); in checkAllProps()
327 void GCAttrsTraverser::traverseTU(MigrationContext &MigrateCtx) { in traverseTU() argument
329 GCAttrsCollector(MigrateCtx, AllProps).TraverseDecl( in traverseTU()
330 MigrateCtx.Pass.Ctx.getTranslationUnitDecl()); in traverseTU()
332 errorForGCAttrsOnNonObjC(MigrateCtx); in traverseTU()
333 checkAllProps(MigrateCtx, AllProps); in traverseTU()
334 checkWeakGCAttrs(MigrateCtx); in traverseTU()