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:
parent
19307f65aa
commit
9f282bdd86
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user