compilerplugins: Fix tutorials plugins

Broken in commit 1f078fcadd

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). // Ctor, nothing special, pass the argument(s).
Tutorial1::Tutorial1( CompilerInstance& compiler ) Tutorial1::Tutorial1( const InstantiationData& data )
: Plugin( compiler ) : Plugin( data )
{ {
} }

View File

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

View File

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

View File

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

View File

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