change some clang plugins to FilteringPlugins

As far as I can tell these do not need to scan everything, so the filtering
(and faster) base plugin is sufficient.

Change-Id: I0912a730bb5ec9670d1faa5c83f573902118cc95
Reviewed-on: https://gerrit.libreoffice.org/68872
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Luboš Luňák
2019-03-05 16:15:22 +01:00
committed by Noel Grandin
parent 99f25bc344
commit a62ad33b0e
4 changed files with 8 additions and 10 deletions

View File

@@ -22,13 +22,12 @@
namespace {
class StringStatic
: public clang::RecursiveASTVisitor<StringStatic>
, public loplugin::Plugin
: public loplugin::FilteringPlugin<StringStatic>
{
public:
explicit StringStatic(loplugin::InstantiationData const& rData):
Plugin(rData) {}
FilteringPlugin(rData) {}
void run() override;
bool VisitVarDecl(VarDecl const*);