summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/unusedmethods.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-22 13:12:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-22 13:13:05 +0000
commit1c15a20df81fef594ef8fa887247aef9f2248c28 (patch)
treec2308bf3962efdc44d0391b26eaddb3b1155ae1f /compilerplugins/clang/unusedmethods.cxx
parent875c5905c71635c8e75d0756cc86d953523726e2 (diff)
loplugin:unusedmethods unused returns
Change-Id: I4da3374e31d3c7407b401d66275da7f56ae83d30 Reviewed-on: https://gerrit.libreoffice.org/29178 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins/clang/unusedmethods.cxx')
-rw-r--r--compilerplugins/clang/unusedmethods.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/compilerplugins/clang/unusedmethods.cxx b/compilerplugins/clang/unusedmethods.cxx
index a8a94a7c4b48..c16b446e5648 100644
--- a/compilerplugins/clang/unusedmethods.cxx
+++ b/compilerplugins/clang/unusedmethods.cxx
@@ -263,7 +263,9 @@ gotfunc:
{
const FunctionDecl* parentFunction = parentFunctionDecl(expr);
if (parentFunction && parentFunction != calleeFunctionDecl) {
- calledFromOutsideSet.insert(niceName(parentFunction));
+ if (!ignoreLocation(parentFunction)) {
+ calledFromOutsideSet.insert(niceName(parentFunction));
+ }
}
}