Lines Matching refs:MigrateCtx

28   MigrationContext &MigrateCtx;  member in __anon0d17146a0111::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()
175 SourceManager &SM = MigrateCtx.Pass.Ctx.getSourceManager(); in isInMainFile()
182 static void errorForGCAttrsOnNonObjC(MigrationContext &MigrateCtx) { in errorForGCAttrsOnNonObjC() argument
183 TransformActions &TA = MigrateCtx.Pass.TA; in errorForGCAttrsOnNonObjC()
185 for (unsigned i = 0, e = MigrateCtx.GCAttrs.size(); i != e; ++i) { in errorForGCAttrsOnNonObjC()
186 MigrationContext::GCAttrOccurrence &Attr = MigrateCtx.GCAttrs[i]; in errorForGCAttrsOnNonObjC()
198 static void checkWeakGCAttrs(MigrationContext &MigrateCtx) { in checkWeakGCAttrs() argument
199 TransformActions &TA = MigrateCtx.Pass.TA; in checkWeakGCAttrs()
201 for (unsigned i = 0, e = MigrateCtx.GCAttrs.size(); i != e; ++i) { in checkWeakGCAttrs()
202 MigrationContext::GCAttrOccurrence &Attr = MigrateCtx.GCAttrs[i]; in checkWeakGCAttrs()
207 if (!canApplyWeak(MigrateCtx.Pass.Ctx, Attr.ModifiedType, in checkWeakGCAttrs()
210 if (!MigrateCtx.RemovedAttrSet.count(Attr.Loc.getRawEncoding())) in checkWeakGCAttrs()
222 static void checkAllAtProps(MigrationContext &MigrateCtx, in checkAllAtProps() argument
263 TransformActions &TA = MigrateCtx.Pass.TA; in checkAllAtProps()
269 MigrateCtx.AtPropsWeak.insert(AtLoc.getRawEncoding()); in checkAllAtProps()
274 if (canApplyWeak(MigrateCtx.Pass.Ctx, IndProps.front()->getType(), in checkAllAtProps()
281 MigrateCtx.rewritePropertyAttribute("assign", toAttr, AtLoc); in checkAllAtProps()
283 MigrateCtx.addPropertyAttribute(toAttr, AtLoc); in checkAllAtProps()
289 Loc = MigrateCtx.Pass.Ctx.getSourceManager() in checkAllAtProps()
295 MigrateCtx.RemovedAttrSet.insert(Loc.getRawEncoding()); in checkAllAtProps()
299 static void checkAllProps(MigrationContext &MigrateCtx, in checkAllProps() argument
321 checkAllAtProps(MigrateCtx, AtLoc, IndProps); in checkAllProps()
325 void GCAttrsTraverser::traverseTU(MigrationContext &MigrateCtx) { in traverseTU() argument
327 GCAttrsCollector(MigrateCtx, AllProps).TraverseDecl( in traverseTU()
328 MigrateCtx.Pass.Ctx.getTranslationUnitDecl()); in traverseTU()
330 errorForGCAttrsOnNonObjC(MigrateCtx); in traverseTU()
331 checkAllProps(MigrateCtx, AllProps); in traverseTU()
332 checkWeakGCAttrs(MigrateCtx); in traverseTU()