summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-14 11:32:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-14 13:56:13 +0200
commit391c6aeeed289678446a5f6f4d039ef92eb284d4 (patch)
treef0021bded12c1659431377bcbc95f2bc5c8e46c3 /compilerplugins
parent616bc7b854e237aea1962a6750abd7f139e38ac2 (diff)
ignore constructors for method-can-be-private analysis
doesn't work right now Change-Id: I43693104f4af204a6bd0c22b0f7ef53c1a14bb6e
Diffstat (limited to 'compilerplugins')
-rwxr-xr-xcompilerplugins/clang/unusedmethods.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/compilerplugins/clang/unusedmethods.py b/compilerplugins/clang/unusedmethods.py
index 1f6c2bcc85a6..bf05c2fdf739 100755
--- a/compilerplugins/clang/unusedmethods.py
+++ b/compilerplugins/clang/unusedmethods.py
@@ -333,6 +333,9 @@ for d in publicDefinitionSet:
method = d[0] + " " + d[1]
if d in calledFromOutsideSet:
continue
+ # TODO ignore constructors for now, my called-from-outside analysis doesn't work here
+ if d[0] == "":
+ continue
if isOtherConstness(d, calledFromOutsideSet):
continue
# ignore external code