diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-10 13:11:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-14 09:07:13 +0200 |
commit | d0f61d94d6bd3e377083eba2c2de84442963c017 (patch) | |
tree | 586b0bf45b78ca9cf53b6a031e682aa6397bee8d /compilerplugins/clang/virtualdead.cxx | |
parent | 5dd9aeb8250890047732ef5dca9072a0ecc32f58 (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.cxx | 2 |
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 |