diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-14 11:32:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-14 13:56:13 +0200 |
commit | 391c6aeeed289678446a5f6f4d039ef92eb284d4 (patch) | |
tree | f0021bded12c1659431377bcbc95f2bc5c8e46c3 /compilerplugins | |
parent | Resolves: tdf#103914 if menu no longer has focus, leave focus where it is (diff) | |
download | core-391c6aeeed289678446a5f6f4d039ef92eb284d4.tar.gz core-391c6aeeed289678446a5f6f4d039ef92eb284d4.zip |
ignore constructors for method-can-be-private analysis
doesn't work right now
Change-Id: I43693104f4af204a6bd0c22b0f7ef53c1a14bb6e
Diffstat (limited to 'compilerplugins')
-rwxr-xr-x | compilerplugins/clang/unusedmethods.py | 3 |
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 |