diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-18 15:35:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-18 18:20:34 +0200 |
commit | 81def52473d8de50f7b0570c9867573256b8afa7 (patch) | |
tree | 965ba42076d57d711e240ea1c1bac6409a0da93e /compilerplugins | |
parent | b7c44d7a34027210c06c9936f273fb1a3523a81a (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.cxx | 3 |
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 "/") ) |