summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/constantparam.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/constantparam.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/constantparam.cxx')
-rw-r--r--compilerplugins/clang/constantparam.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/compilerplugins/clang/constantparam.cxx b/compilerplugins/clang/constantparam.cxx
index 5fd472954a9a..db82bc4df9ce 100644
--- a/compilerplugins/clang/constantparam.cxx
+++ b/compilerplugins/clang/constantparam.cxx
@@ -61,6 +61,8 @@ public:
virtual void run() override
{
+ handler.enableTreeWideAnalysisMode();
+
// ignore some files that make clang crash inside EvaluateAsInt
std::string fn(handler.getMainFileName());
loplugin::normalizeDotDotInFilePath(fn);