From 9f282bdd86d25dd8c01c01a3cadcc8fba599294f Mon Sep 17 00:00:00 2001 From: Juan Picca Date: Wed, 23 Jul 2014 00:02:35 -0300 Subject: compilerplugins: Fix tutorials plugins Broken in commit 1f078fcaddd45bb074e4d0a4933db01f6e8b623e Change-Id: Ica93c3b9309b2ae4d973ccc34a84b5accac7472c Reviewed-on: https://gerrit.libreoffice.org/10478 Reviewed-by: Thomas Arnhold Tested-by: Thomas Arnhold --- compilerplugins/clang/store/tutorial/tutorial1.cxx | 4 ++-- compilerplugins/clang/store/tutorial/tutorial1.hxx | 2 +- compilerplugins/clang/store/tutorial/tutorial2.cxx | 4 ++-- compilerplugins/clang/store/tutorial/tutorial2.hxx | 2 +- compilerplugins/clang/store/tutorial/tutorial3.cxx | 4 ++-- compilerplugins/clang/store/tutorial/tutorial3.hxx | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) (limited to 'compilerplugins') 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 ); -- cgit