virtual void HandleTranslationUnit(ASTContext &Ctx) { Decl * Decl = Visitor.GetLivenessFunction(); DeclGroupRef R = DeclGroupRef::Create(Ctx, &Decl, 1); CG->HandleTopLevelDecl(R); CG->HandleTranslationUnit(Ctx); }
virtual bool HandleTopLevelDecl(DeclGroupRef D) { for (DeclGroupRef::iterator b = D.begin(), e = D.end(); b != e; ++b) Visitor.TraverseDecl(*b); return CG->HandleTopLevelDecl(D); }