summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/pluginhandler.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/pluginhandler.hxx')
-rw-r--r--compilerplugins/clang/pluginhandler.hxx25
1 files changed, 2 insertions, 23 deletions
diff --git a/compilerplugins/clang/pluginhandler.hxx b/compilerplugins/clang/pluginhandler.hxx
index d9ac63341122..2211275208ae 100644
--- a/compilerplugins/clang/pluginhandler.hxx
+++ b/compilerplugins/clang/pluginhandler.hxx
@@ -16,13 +16,6 @@
#include <clang/AST/ASTConsumer.h>
#include <clang/Frontend/FrontendAction.h>
-#include "bodynotinblock.hxx"
-#include "lclstaticfix.hxx"
-#include "postfixincrementfix.hxx"
-#include "removeforwardstringdecl.hxx"
-#include "sallogareas.hxx"
-#include "unusedvariablecheck.hxx"
-
namespace loplugin
{
@@ -34,17 +27,11 @@ class PluginHandler
{
public:
PluginHandler( ASTContext& context, const vector< string >& args );
+ virtual ~PluginHandler();
virtual void HandleTranslationUnit( ASTContext& context );
+ static void registerPlugin( Plugin* (*create)( ASTContext&, Rewriter& ), const char* optionName, bool isRewriter );
private:
- bool isArg( const char* arg ) const;
Rewriter rewriter;
- vector< string > args;
- BodyNotInBlock bodyNotInBlock;
- LclStaticFix lclStaticFix;
- PostfixIncrementFix postfixIncrementFix;
- RemoveForwardStringDecl removeForwardStringDecl;
- SalLogAreas salLogAreas;
- UnusedVariableCheck unusedVariableCheck;
};
/**
@@ -60,14 +47,6 @@ class LibreOfficeAction
vector< string > _args;
};
-/////
-
-inline
-bool PluginHandler::isArg( const char* arg ) const
- {
- return find( args.begin(), args.end(), arg ) != args.end();
- }
-
} // namespace
#endif // COMPILEPLUGIN_H