Kaydet (Commit) 9f282bdd authored tarafından Juan Picca's avatar Juan Picca Kaydeden (comit) Thomas Arnhold

compilerplugins: Fix tutorials plugins

Broken in commit 1f078fca

Change-Id: Ica93c3b9309b2ae4d973ccc34a84b5accac7472c
Reviewed-on: https://gerrit.libreoffice.org/10478Reviewed-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Tested-by: 's avatarThomas Arnhold <thomas@arnhold.org>
üst 19307f65
......@@ -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 )
{
}
......
......@@ -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.
......
......@@ -22,8 +22,8 @@ if( a == 1 )
namespace loplugin
{
Tutorial2::Tutorial2( CompilerInstance& compiler )
: Plugin( compiler )
Tutorial2::Tutorial2( const InstantiationData& data )
: Plugin( data )
{
}
......
......@@ -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 );
......
......@@ -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 )
{
}
......
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment