summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/virtualdead.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-10 13:11:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-14 09:07:13 +0200
commitd0f61d94d6bd3e377083eba2c2de84442963c017 (patch)
tree586b0bf45b78ca9cf53b6a031e682aa6397bee8d /compilerplugins/clang/virtualdead.cxx
parent5dd9aeb8250890047732ef5dca9072a0ecc32f58 (diff)
better solution for ignoreLocation for tree-wide plugins
Change-Id: I7336003e038781d4ef50380fa49f66b5ff19379f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135589 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins/clang/virtualdead.cxx')
-rw-r--r--compilerplugins/clang/virtualdead.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/compilerplugins/clang/virtualdead.cxx b/compilerplugins/clang/virtualdead.cxx
index 1a63363aaaf2..e3cdf2b45018 100644
--- a/compilerplugins/clang/virtualdead.cxx
+++ b/compilerplugins/clang/virtualdead.cxx
@@ -68,6 +68,8 @@ public:
virtual void run() override
{
+ handler.enableTreeWideAnalysisMode();
+
TraverseDecl(compiler.getASTContext().getTranslationUnitDecl());
// dump all our output in one write call - this is to try and limit IO "crosstalk" between multiple processes