Home
last modified time | relevance | path

Searched refs:MigrateCtx (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransGCAttrs.cpp27 MigrationContext &MigrateCtx; member in __anon06676ab80111::GCAttrsCollector
35 : MigrateCtx(ctx), FullyMigratable(false), in GCAttrsCollector()
92 if (MigrateCtx.AttrSet.count(OrigLoc)) in handleAttr()
95 ASTContext &Ctx = MigrateCtx.Pass.Ctx; in handleAttr()
108 MigrateCtx.AttrSet.insert(OrigLoc); in handleAttr()
180 TransformActions &TA = MigrateCtx.Pass.TA; in errorForGCAttrsOnNonObjC()
265 MigrateCtx.AtPropsWeak.insert(AtLoc); in checkAllAtProps()
292 MigrateCtx.RemovedAttrSet.insert(Loc); in checkAllAtProps()
325 errorForGCAttrsOnNonObjC(MigrateCtx); in traverseTU()
326 checkAllProps(MigrateCtx, AllProps); in traverseTU()
[all …]
H A DTransforms.h46 MigrationContext &MigrateCtx; variable
51 BodyContext(MigrationContext &MigrateCtx, Stmt *S) in BodyContext() argument
52 : MigrateCtx(MigrateCtx), PMap(S), TopStmt(S) {} in BodyContext()
54 MigrationContext &getMigrationContext() { return MigrateCtx; } in getMigrationContext()
60 MigrationContext &MigrateCtx; variable
64 ObjCImplementationContext(MigrationContext &MigrateCtx, in ObjCImplementationContext() argument
66 : MigrateCtx(MigrateCtx), ImpD(D) {} in ObjCImplementationContext()
68 MigrationContext &getMigrationContext() { return MigrateCtx; } in getMigrationContext()
75 virtual void traverseTU(MigrationContext &MigrateCtx) { } in traverseTU() argument
146 void traverseTU(MigrationContext &MigrateCtx) override;
H A DTransGCCalls.cpp22 MigrationContext &MigrateCtx; member in __anonf0aca6390111::GCCollectableCallsChecker
28 : MigrateCtx(ctx) { in GCCollectableCallsChecker()
29 IdentifierTable &Ids = MigrateCtx.Pass.Ctx.Idents; in GCCollectableCallsChecker()
37 TransformActions &TA = MigrateCtx.Pass.TA; in VisitCallExpr()
39 if (MigrateCtx.isGCOwnedNonObjC(E->getType())) { in VisitCallExpr()
H A DTransforms.cpp318 MigrationContext &MigrateCtx; member in __anon826ab2670211::ASTTransform
322 ASTTransform(MigrationContext &MigrateCtx) : MigrateCtx(MigrateCtx) { } in ASTTransform() argument
327 ObjCImplementationContext ImplCtx(MigrateCtx, D); in TraverseObjCImplementationDecl()
329 I = MigrateCtx.traversers_begin(), in TraverseObjCImplementationDecl()
330 E = MigrateCtx.traversers_end(); I != E; ++I) in TraverseObjCImplementationDecl()
340 BodyContext BodyCtx(MigrateCtx, rootS); in TraverseStmt()
342 I = MigrateCtx.traversers_begin(), in TraverseStmt()
343 E = MigrateCtx.traversers_end(); I != E; ++I) in TraverseStmt()
557 MigrationContext MigrateCtx(pass); in traverseAST() local
561 MigrateCtx.addTraverser(new GCAttrsTraverser()); in traverseAST()
[all …]
H A DTransProperties.cpp46 MigrationContext &MigrateCtx; member in __anoncb9639ad0111::PropertiesRewriter
73 explicit PropertiesRewriter(MigrationContext &MigrateCtx) in PropertiesRewriter() argument
74 : MigrateCtx(MigrateCtx), Pass(MigrateCtx.Pass) { } in PropertiesRewriter()
157 MigrateCtx.rewritePropertyAttribute("retain", toAttr, atLoc); in doPropAction()
272 return MigrateCtx.removePropertyAttribute(fromAttr, atLoc); in removeAttribute()
277 return MigrateCtx.rewritePropertyAttribute(fromAttr, toAttr, atLoc); in rewriteAttribute()
281 return MigrateCtx.addPropertyAttribute(attr, atLoc); in addAttribute()
340 return MigrateCtx.AtPropsWeak.count(atLoc); in hasGCWeak()