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