Lines Matching refs:MigrateCtx

27   MigrationContext &MigrateCtx;
35 : MigrateCtx(ctx), FullyMigratable(false),
92 if (MigrateCtx.AttrSet.count(OrigLoc))
95 ASTContext &Ctx = MigrateCtx.Pass.Ctx;
108 MigrateCtx.AttrSet.insert(OrigLoc);
109 MigrateCtx.GCAttrs.push_back(MigrationContext::GCAttrOccurrence());
110 MigrationContext::GCAttrOccurrence &Attr = MigrateCtx.GCAttrs.back();
172 SourceManager &SM = MigrateCtx.Pass.Ctx.getSourceManager();
179 static void errorForGCAttrsOnNonObjC(MigrationContext &MigrateCtx) {
180 TransformActions &TA = MigrateCtx.Pass.TA;
182 for (unsigned i = 0, e = MigrateCtx.GCAttrs.size(); i != e; ++i) {
183 MigrationContext::GCAttrOccurrence &Attr = MigrateCtx.GCAttrs[i];
195 static void checkWeakGCAttrs(MigrationContext &MigrateCtx) {
196 TransformActions &TA = MigrateCtx.Pass.TA;
198 for (unsigned i = 0, e = MigrateCtx.GCAttrs.size(); i != e; ++i) {
199 MigrationContext::GCAttrOccurrence &Attr = MigrateCtx.GCAttrs[i];
204 if (!canApplyWeak(MigrateCtx.Pass.Ctx, Attr.ModifiedType,
207 if (!MigrateCtx.RemovedAttrSet.count(Attr.Loc))
219 static void checkAllAtProps(MigrationContext &MigrateCtx,
259 TransformActions &TA = MigrateCtx.Pass.TA;
265 MigrateCtx.AtPropsWeak.insert(AtLoc);
270 if (canApplyWeak(MigrateCtx.Pass.Ctx, IndProps.front()->getType(),
277 MigrateCtx.rewritePropertyAttribute("assign", toAttr, AtLoc);
279 MigrateCtx.addPropertyAttribute(toAttr, AtLoc);
285 Loc = MigrateCtx.Pass.Ctx.getSourceManager()
292 MigrateCtx.RemovedAttrSet.insert(Loc);
296 static void checkAllProps(MigrationContext &MigrateCtx,
316 checkAllAtProps(MigrateCtx, AtLoc, IndProps);
320 void GCAttrsTraverser::traverseTU(MigrationContext &MigrateCtx) {
322 GCAttrsCollector(MigrateCtx, AllProps).TraverseDecl(
323 MigrateCtx.Pass.Ctx.getTranslationUnitDecl());
325 errorForGCAttrsOnNonObjC(MigrateCtx);
326 checkAllProps(MigrateCtx, AllProps);
327 checkWeakGCAttrs(MigrateCtx);