Home
last modified time | relevance | path

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

/external/clang/lib/ARCMigrate/
DTransGCAttrs.cpp28 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()
[all …]
DTransforms.h47 MigrationContext &MigrateCtx; variable
52 BodyContext(MigrationContext &MigrateCtx, Stmt *S) in BodyContext() argument
53 : MigrateCtx(MigrateCtx), PMap(S), TopStmt(S) {} in BodyContext()
55 MigrationContext &getMigrationContext() { return MigrateCtx; } in getMigrationContext()
61 MigrationContext &MigrateCtx; variable
65 ObjCImplementationContext(MigrationContext &MigrateCtx, in ObjCImplementationContext() argument
67 : MigrateCtx(MigrateCtx), ImpD(D) {} in ObjCImplementationContext()
69 MigrationContext &getMigrationContext() { return MigrateCtx; } in getMigrationContext()
76 virtual void traverseTU(MigrationContext &MigrateCtx) { } in traverseTU() argument
147 void traverseTU(MigrationContext &MigrateCtx) override;
DTransGCCalls.cpp23 MigrationContext &MigrateCtx; member in __anonf75c4feb0111::GCCollectableCallsChecker
29 : MigrateCtx(ctx) { in GCCollectableCallsChecker()
30 IdentifierTable &Ids = MigrateCtx.Pass.Ctx.Idents; in GCCollectableCallsChecker()
38 TransformActions &TA = MigrateCtx.Pass.TA; in VisitCallExpr()
40 if (MigrateCtx.isGCOwnedNonObjC(E->getType())) { in VisitCallExpr()
DTransforms.cpp324 MigrationContext &MigrateCtx; member in __anonf56047990211::ASTTransform
328 ASTTransform(MigrationContext &MigrateCtx) : MigrateCtx(MigrateCtx) { } in ASTTransform() argument
333 ObjCImplementationContext ImplCtx(MigrateCtx, D); in TraverseObjCImplementationDecl()
335 I = MigrateCtx.traversers_begin(), in TraverseObjCImplementationDecl()
336 E = MigrateCtx.traversers_end(); I != E; ++I) in TraverseObjCImplementationDecl()
346 BodyContext BodyCtx(MigrateCtx, rootS); in TraverseStmt()
348 I = MigrateCtx.traversers_begin(), in TraverseStmt()
349 E = MigrateCtx.traversers_end(); I != E; ++I) in TraverseStmt()
563 MigrationContext MigrateCtx(pass); in traverseAST() local
566 MigrateCtx.addTraverser(new GCCollectableCallsTraverser); in traverseAST()
[all …]
DTransProperties.cpp47 MigrationContext &MigrateCtx; member in __anon64f2de1f0111::PropertiesRewriter
74 explicit PropertiesRewriter(MigrationContext &MigrateCtx) in PropertiesRewriter() argument
75 : MigrateCtx(MigrateCtx), Pass(MigrateCtx.Pass) { } in PropertiesRewriter()
159 MigrateCtx.rewritePropertyAttribute("retain", toAttr, atLoc); in doPropAction()
274 return MigrateCtx.removePropertyAttribute(fromAttr, atLoc); in removeAttribute()
279 return MigrateCtx.rewritePropertyAttribute(fromAttr, toAttr, atLoc); in rewriteAttribute()
283 return MigrateCtx.addPropertyAttribute(attr, atLoc); in addAttribute()
339 return MigrateCtx.AtPropsWeak.count(atLoc.getRawEncoding()); in hasGCWeak()