Home
last modified time | relevance | path

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

/external/clang/lib/ARCMigrate/
DTransGCAttrs.cpp27 MigrationContext &MigrateCtx; member in __anon190c78ee0111::GCAttrsCollector
35 : 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()
179 SourceManager &SM = MigrateCtx.Pass.Ctx.getSourceManager(); in isInMainFile()
186 static void errorForGCAttrsOnNonObjC(MigrationContext &MigrateCtx) { in errorForGCAttrsOnNonObjC() argument
187 TransformActions &TA = MigrateCtx.Pass.TA; in errorForGCAttrsOnNonObjC()
[all …]
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
141 virtual void traverseTU(MigrationContext &MigrateCtx);
DTransGCCalls.cpp22 MigrationContext &MigrateCtx; member in __anon0351b46f0111::GCCollectableCallsChecker
29 : MigrateCtx(ctx), PMap(map) { 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()
41 if (MigrateCtx.Pass.noNSAllocReallocError()) in VisitCallExpr()
DTransforms.cpp262 MigrationContext &MigrateCtx; member in __anonf4eabb1d0211::ASTTransform
266 ASTTransform(MigrationContext &MigrateCtx) : MigrateCtx(MigrateCtx) { } in ASTTransform() argument
271 ObjCImplementationContext ImplCtx(MigrateCtx, D); in TraverseObjCImplementationDecl()
273 I = MigrateCtx.traversers_begin(), in TraverseObjCImplementationDecl()
274 E = MigrateCtx.traversers_end(); I != E; ++I) in TraverseObjCImplementationDecl()
284 BodyContext BodyCtx(MigrateCtx, rootS); in TraverseStmt()
286 I = MigrateCtx.traversers_begin(), in TraverseStmt()
287 E = MigrateCtx.traversers_end(); I != E; ++I) in TraverseStmt()
507 MigrationContext MigrateCtx(pass); in traverseAST() local
510 MigrateCtx.addTraverser(new GCCollectableCallsTraverser); in traverseAST()
[all …]
DTransProperties.cpp47 MigrationContext &MigrateCtx; member in __anon1fe624230111::PropertiesRewriter
73 explicit PropertiesRewriter(MigrationContext &MigrateCtx) in PropertiesRewriter() argument
74 : MigrateCtx(MigrateCtx), Pass(MigrateCtx.Pass) { } in PropertiesRewriter()
171 MigrateCtx.rewritePropertyAttribute("retain", toAttr, atLoc); in doPropAction()
289 return MigrateCtx.removePropertyAttribute(fromAttr, atLoc); in removeAttribute()
294 return MigrateCtx.rewritePropertyAttribute(fromAttr, toAttr, atLoc); in rewriteAttribute()
298 return MigrateCtx.addPropertyAttribute(attr, atLoc); in addAttribute()
371 return MigrateCtx.AtPropsWeak.count(atLoc.getRawEncoding()); in hasGCWeak()