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

Lines Matching refs:MigrateCtx

27   MigrationContext &MigrateCtx;
35 : MigrateCtx(ctx), FullyMigratable(false),
92 if (MigrateCtx.AttrSet.count(RawLoc))
95 ASTContext &Ctx = MigrateCtx.Pass.Ctx;
108 MigrateCtx.AttrSet.insert(RawLoc);
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.getRawEncoding()))
219 static void checkAllAtProps(MigrationContext &MigrateCtx,
260 TransformActions &TA = MigrateCtx.Pass.TA;
266 MigrateCtx.AtPropsWeak.insert(AtLoc.getRawEncoding());
271 if (canApplyWeak(MigrateCtx.Pass.Ctx, IndProps.front()->getType(),
278 MigrateCtx.rewritePropertyAttribute("assign", toAttr, AtLoc);
280 MigrateCtx.addPropertyAttribute(toAttr, AtLoc);
286 Loc = MigrateCtx.Pass.Ctx.getSourceManager()
293 MigrateCtx.RemovedAttrSet.insert(Loc.getRawEncoding());
297 static void checkAllProps(MigrationContext &MigrateCtx,
319 checkAllAtProps(MigrateCtx, AtLoc, IndProps);
323 void GCAttrsTraverser::traverseTU(MigrationContext &MigrateCtx) {
325 GCAttrsCollector(MigrateCtx, AllProps).TraverseDecl(
326 MigrateCtx.Pass.Ctx.getTranslationUnitDecl());
328 errorForGCAttrsOnNonObjC(MigrateCtx);
329 checkAllProps(MigrateCtx, AllProps);
330 checkWeakGCAttrs(MigrateCtx);