summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-18 15:35:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-18 18:20:34 +0200
commit81def52473d8de50f7b0570c9867573256b8afa7 (patch)
tree965ba42076d57d711e240ea1c1bac6409a0da93e /compilerplugins
parentb7c44d7a34027210c06c9936f273fb1a3523a81a (diff)
loplugin:unusedmethods
Change-Id: I8191f4a9eb25b12242354813303fb7d30489d2c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115752 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/unusedmethods.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/compilerplugins/clang/unusedmethods.cxx b/compilerplugins/clang/unusedmethods.cxx
index 818c0b645a48..5d39020ad538 100644
--- a/compilerplugins/clang/unusedmethods.cxx
+++ b/compilerplugins/clang/unusedmethods.cxx
@@ -225,7 +225,8 @@ bool UnusedMethods::checkIgnoreLocation(SourceLocation loc)
return true;
const char* bufferName = presumedLoc.getFilename();
if (bufferName == NULL
- || loplugin::hasPathnamePrefix(bufferName, SRCDIR "/external/"))
+ || loplugin::hasPathnamePrefix(bufferName, SRCDIR "/external/")
+ || loplugin::hasPathnamePrefix(bufferName, WORKDIR "/"))
return true;
if( loplugin::hasPathnamePrefix(bufferName, BUILDDIR "/")
|| loplugin::hasPathnamePrefix(bufferName, SRCDIR "/") )