convert some plugins to LO_CLANG_SHARED_PLUGINS

Change-Id: I63c9e010d83c24e18a36164ceb0441e48b757142
Reviewed-on: https://gerrit.libreoffice.org/75725
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2019-07-16 13:05:34 +02:00
parent 70c6651e02
commit 40fc30d05d
5 changed files with 104 additions and 17 deletions

View File

@@ -6,6 +6,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef LO_CLANG_SHARED_PLUGINS
#include <memory>
#include <cassert>
@@ -33,7 +34,8 @@ public:
virtual void run() override
{
TraverseDecl(compiler.getASTContext().getTranslationUnitDecl());
if (preRun())
TraverseDecl(compiler.getASTContext().getTranslationUnitDecl());
}
bool shouldVisitTemplateInstantiations () const { return true; }
@@ -80,8 +82,10 @@ bool PtrVector::VisitCXXOperatorCallExpr(const CXXOperatorCallExpr* expr)
}
loplugin::Plugin::Registration< PtrVector > X("ptrvector");
loplugin::Plugin::Registration< PtrVector > ptrvector("ptrvector");
}
} // namespace
#endif // LO_CLANG_SHARED_PLUGINS
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */