예제 #1
0
 // override this to call our ExampleVisitor on the entire source file
 virtual void HandleTranslationUnit(ASTContext &Context) {
     /* we can use ASTContext to get the TranslationUnitDecl, which is
          a single Decl that collectively represents the entire source file */
     visitor->TraverseDecl(Context.getTranslationUnitDecl());
 }
예제 #2
0
 virtual void HandleTranslationUnit(clang::ASTContext &Context) {
     Visitor.TraverseDecl(Context.getTranslationUnitDecl());
 }