adjust unused compiler plugins for ASTContext to CompilerInstance change too
Change-Id: I415ed25586408d7e7df9457f7c637a8c6d13d35d
This commit is contained in:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user