compilerplugins: Fix tutorials plugins

Broken in commit 1f078fcaddd45bb074e4d0a4933db01f6e8b623e

Change-Id: Ica93c3b9309b2ae4d973ccc34a84b5accac7472c
Reviewed-on: https://gerrit.libreoffice.org/10478
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
This commit is contained in:
Juan Picca 2014-07-23 00:02:35 -03:00 committed by Thomas Arnhold
parent 19307f65aa
commit 9f282bdd86
6 changed files with 9 additions and 9 deletions

View File

@ -21,8 +21,8 @@ namespace loplugin
{
// Ctor, nothing special, pass the argument(s).
Tutorial1::Tutorial1( CompilerInstance& compiler )
: Plugin( compiler )
Tutorial1::Tutorial1( const InstantiationData& data )
: Plugin( data )
{
}

View File

@ -26,7 +26,7 @@ class Tutorial1
{
public:
// Ctor, nothing special.
Tutorial1( CompilerInstance& compiler );
Tutorial1( const InstantiationData& data );
// The function that will be called to perform the actual action.
virtual void run() override;
// Function from Clang, it will be called for every return statement in the source.

View File

@ -22,8 +22,8 @@ if( a == 1 )
namespace loplugin
{
Tutorial2::Tutorial2( CompilerInstance& compiler )
: Plugin( compiler )
Tutorial2::Tutorial2( const InstantiationData& data )
: Plugin( data )
{
}

View File

@ -23,7 +23,7 @@ class Tutorial2
, public Plugin
{
public:
Tutorial2( CompilerInstance& compiler );
Tutorial2( const InstantiationData& data );
virtual void run() override;
// Will be called for every if statement.
bool VisitIfStmt( const IfStmt* ifstmt );

View File

@ -22,8 +22,8 @@ namespace loplugin
{
// Ctor, pass arguments.
Tutorial3::Tutorial3( CompilerInstance& compiler, Rewriter& rewriter )
: RewritePlugin( compiler, rewriter )
Tutorial3::Tutorial3( const InstantiationData& data )
: RewritePlugin( data )
{
}

View File

@ -24,7 +24,7 @@ class Tutorial3
{
public:
// One more argument for ctor.
Tutorial3( CompilerInstance& compiler, Rewriter& rewriter );
Tutorial3( const InstantiationData& data );
virtual void run() override;
// Will be called for every if statement.
bool VisitIfStmt( const IfStmt* ifstmt );