adjust unused compiler plugins for ASTContext to CompilerInstance change too

Change-Id: I415ed25586408d7e7df9457f7c637a8c6d13d35d
This commit is contained in:
Luboš Luňák
2013-03-28 18:07:09 +01:00
parent 153a69cad2
commit c63e6c38c9
8 changed files with 16 additions and 16 deletions

View File

@@ -21,14 +21,14 @@ namespace loplugin
{
// Ctor, pass arguments.
Tutorial3::Tutorial3( ASTContext& context, Rewriter& rewriter )
: RewritePlugin( context, rewriter )
Tutorial3::Tutorial3( CompilerInstance& compiler, Rewriter& rewriter )
: RewritePlugin( compiler, rewriter )
{
}
void Tutorial3::run()
{
TraverseDecl( context.getTranslationUnitDecl());
TraverseDecl( compiler.getASTContext().getTranslationUnitDecl());
}
bool Tutorial3::VisitIfStmt( IfStmt* ifstmt )