summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/store/tutorial
diff options
context:
space:
mode:
authorJuan Picca <jumapico@gmail.com>2014-07-23 00:02:35 -0300
committerThomas Arnhold <thomas@arnhold.org>2014-07-24 08:17:16 +0000
commit9f282bdd86d25dd8c01c01a3cadcc8fba599294f (patch)
tree8bd2d2d2762cd6348e17c0d376dd288c05dad721 /compilerplugins/clang/store/tutorial
parent19307f65aa1e1f992da42c26fbbff62d4c31e3bb (diff)
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>
Diffstat (limited to 'compilerplugins/clang/store/tutorial')
-rw-r--r--compilerplugins/clang/store/tutorial/tutorial1.cxx4
-rw-r--r--compilerplugins/clang/store/tutorial/tutorial1.hxx2
-rw-r--r--compilerplugins/clang/store/tutorial/tutorial2.cxx4
-rw-r--r--compilerplugins/clang/store/tutorial/tutorial2.hxx2
-rw-r--r--compilerplugins/clang/store/tutorial/tutorial3.cxx4
-rw-r--r--compilerplugins/clang/store/tutorial/tutorial3.hxx2
6 files changed, 9 insertions, 9 deletions
diff --git a/compilerplugins/clang/store/tutorial/tutorial1.cxx b/compilerplugins/clang/store/tutorial/tutorial1.cxx
index 63158e895ebc..cd3f710d1187 100644
--- a/compilerplugins/clang/store/tutorial/tutorial1.cxx
+++ b/compilerplugins/clang/store/tutorial/tutorial1.cxx
@@ -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 )
{
}
diff --git a/compilerplugins/clang/store/tutorial/tutorial1.hxx b/compilerplugins/clang/store/tutorial/tutorial1.hxx
index 9eebd644273e..365d9259680c 100644
--- a/compilerplugins/clang/store/tutorial/tutorial1.hxx
+++ b/compilerplugins/clang/store/tutorial/tutorial1.hxx
@@ -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.
diff --git a/compilerplugins/clang/store/tutorial/tutorial2.cxx b/compilerplugins/clang/store/tutorial/tutorial2.cxx
index c6bee6999982..5d3a2d6322e5 100644
--- a/compilerplugins/clang/store/tutorial/tutorial2.cxx
+++ b/compilerplugins/clang/store/tutorial/tutorial2.cxx
@@ -22,8 +22,8 @@ if( a == 1 )
namespace loplugin
{
-Tutorial2::Tutorial2( CompilerInstance& compiler )
- : Plugin( compiler )
+Tutorial2::Tutorial2( const InstantiationData& data )
+ : Plugin( data )
{
}
diff --git a/compilerplugins/clang/store/tutorial/tutorial2.hxx b/compilerplugins/clang/store/tutorial/tutorial2.hxx
index dde4da6e8229..cb708d32cef8 100644
--- a/compilerplugins/clang/store/tutorial/tutorial2.hxx
+++ b/compilerplugins/clang/store/tutorial/tutorial2.hxx
@@ -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 );
diff --git a/compilerplugins/clang/store/tutorial/tutorial3.cxx b/compilerplugins/clang/store/tutorial/tutorial3.cxx
index e0a9e94ed877..183c3b20d40c 100644
--- a/compilerplugins/clang/store/tutorial/tutorial3.cxx
+++ b/compilerplugins/clang/store/tutorial/tutorial3.cxx
@@ -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 )
{
}
diff --git a/compilerplugins/clang/store/tutorial/tutorial3.hxx b/compilerplugins/clang/store/tutorial/tutorial3.hxx
index 27863b5d1cd3..4261d1bfd7f0 100644
--- a/compilerplugins/clang/store/tutorial/tutorial3.hxx
+++ b/compilerplugins/clang/store/tutorial/tutorial3.hxx
@@ -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 );