convert some plugins to LO_CLANG_SHARED_PLUGINS

Change-Id: I7451a95377101004c7c53c918f3234415e06f555
Reviewed-on: https://gerrit.libreoffice.org/75670
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2019-07-16 08:13:59 +02:00
parent 5521ac4e15
commit 8d4fbc532e
12 changed files with 410 additions and 43 deletions

View File

@@ -5,6 +5,8 @@
* Based on LLVM/Clang.
*
*/
#ifndef LO_CLANG_SHARED_PLUGINS
#include "plugin.hxx"
/*
@@ -22,7 +24,7 @@ class StaticAnonymous
public:
explicit StaticAnonymous( const InstantiationData& data );
virtual void run() override;
bool VisitFunctionDecl( FunctionDecl* func );
bool VisitFunctionDecl( const FunctionDecl* func );
};
@@ -37,7 +39,7 @@ void StaticAnonymous::run()
}
bool StaticAnonymous::VisitFunctionDecl( FunctionDecl* func )
bool StaticAnonymous::VisitFunctionDecl( const FunctionDecl* func )
{
if( ignoreLocation( func ) )
@@ -59,8 +61,10 @@ bool StaticAnonymous::VisitFunctionDecl( FunctionDecl* func )
}
// Register the plugin action with the LO plugin handling.
static Plugin::Registration< StaticAnonymous > X( "staticanonymous",true);
static Plugin::Registration< StaticAnonymous > staticanonymous("staticanonymous");
} // namespace
#endif // LO_CLANG_SHARED_PLUGINS
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */