summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/store/tutorial/tutorial1.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-13 17:24:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-14 13:02:14 +0200
commit9f4d23c15115d64febd6bf01f870cc157badd350 (patch)
tree6bc1724f580291d42d62815d9ba84c7d2245b0ad /compilerplugins/clang/store/tutorial/tutorial1.hxx
parent4917430c1c5e8105987e81d65d31df21955ad60e (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins/clang/store/tutorial/tutorial1.hxx')
-rw-r--r--compilerplugins/clang/store/tutorial/tutorial1.hxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/compilerplugins/clang/store/tutorial/tutorial1.hxx b/compilerplugins/clang/store/tutorial/tutorial1.hxx
index 365d9259680c..59f115147780 100644
--- a/compilerplugins/clang/store/tutorial/tutorial1.hxx
+++ b/compilerplugins/clang/store/tutorial/tutorial1.hxx
@@ -20,9 +20,7 @@ namespace loplugin
// The class implementing the plugin action.
class Tutorial1
// Inherits from the Clang class that will allow examing the Clang AST tree (i.e. syntax tree).
- : public RecursiveASTVisitor< Tutorial1 >
- // And the base class for LO Clang plugins.
- , public Plugin
+ : public FilteringPlugin< Tutorial1 >
{
public:
// Ctor, nothing special.