diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-22 15:08:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-22 18:56:58 +0000 |
commit | c4cd079b8f613084a99a83b95c3968b65cbd8900 (patch) | |
tree | 16051edcfd1f7109aefa08af6d71da0687b20f8a /compilerplugins | |
parent | ba3d6d8a39d31316923d2326059c07b0a7e3c05e (diff) |
loplugin:unusedmethods in sc..vcl
Change-Id: I70fcf95dfd3db05b4fd6e5cee37866f673d3afa8
Reviewed-on: https://gerrit.libreoffice.org/29183
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rwxr-xr-x | compilerplugins/clang/unusedmethods.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compilerplugins/clang/unusedmethods.py b/compilerplugins/clang/unusedmethods.py index fb9412b20e13..319e8ad4e7bf 100755 --- a/compilerplugins/clang/unusedmethods.py +++ b/compilerplugins/clang/unusedmethods.py @@ -268,9 +268,12 @@ for d in definitionSet: continue if "::operator" in d[1]: continue + location = definitionToSourceLocationMap[d]; + # whacky template stuff + if location.startswith("sc/source/ui/vba/vbaformat.hxx"): continue unusedSet.add(d) # used by the "unused return types" analysis - tmp1set.add((method, definitionToSourceLocationMap[d])) + tmp1set.add((method, location)) # print out the results, sorted by name and line number with open("loplugin.unusedmethods.report-methods", "wt") as f: |