From 9f4d23c15115d64febd6bf01f870cc157badd350 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 13 Aug 2018 17:24:26 +0200 Subject: filter out some of the AST in the plugins by checking if the current namespace decl is in our code, so we have to scan less stuff, which results in a 10% perf improvement for me Change-Id: Idf0e30d57b6d0dcd13daa9ed679c28b9d233d387 Reviewed-on: https://gerrit.libreoffice.org/58942 Tested-by: Jenkins Reviewed-by: Noel Grandin --- compilerplugins/clang/inlinesimplememberfunctions.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compilerplugins/clang/inlinesimplememberfunctions.cxx') diff --git a/compilerplugins/clang/inlinesimplememberfunctions.cxx b/compilerplugins/clang/inlinesimplememberfunctions.cxx index 64734dc9de9a..668e9f252ab6 100644 --- a/compilerplugins/clang/inlinesimplememberfunctions.cxx +++ b/compilerplugins/clang/inlinesimplememberfunctions.cxx @@ -18,10 +18,10 @@ namespace { class InlineSimpleMemberFunctions: - public RecursiveASTVisitor, public loplugin::RewritePlugin + public loplugin::FilteringRewritePlugin { public: - explicit InlineSimpleMemberFunctions(loplugin::InstantiationData const & data): RewritePlugin(data) {} + explicit InlineSimpleMemberFunctions(loplugin::InstantiationData const & data): FilteringRewritePlugin(data) {} virtual void run() override { TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); } -- cgit