コード例 #1
0
  virtual void
  HandleTranslationUnit(ASTContext &CXT) override {
    MangleContext *MC = CXT.createMangleContext();
    InheritanceInfo inheritanceinfo;
    InheritanceInfo *II = &inheritanceinfo;
    DeclarationsVisitorContext DVC(MC, II);
    DeclarationsVisitor DV(MC, rootNode, nullptr, &DVC);
    Decl *D = CXT.getTranslationUnitDecl();

    DV.TraverseDecl(D);
  }
コード例 #2
0
 Implementation(ASTContext &Ctx)
   : MC(Ctx.createMangleContext()),
     DL(Ctx.getTargetInfo().getDataLayoutString()) {}