diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-20 09:13:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-20 12:35:18 +0200 |
commit | 8411f48bfb71d5713b185b41d6519b0beb4c1e83 (patch) | |
tree | f4f9ab47738f06f3cd7d0021d0cec709cdabdfac /compilerplugins/clang | |
parent | 41bc9d4d467495c9fbf05c920a41fa299ac0ace3 (diff) |
loplugin:unusedfields
Change-Id: I0026e0a1890b984675e82ab7be5cdbc56e142a87
Reviewed-on: https://gerrit.libreoffice.org/36722
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins/clang')
-rwxr-xr-x | compilerplugins/clang/unusedfields.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/compilerplugins/clang/unusedfields.py b/compilerplugins/clang/unusedfields.py index 77e6446e18e3..3effaff38828 100755 --- a/compilerplugins/clang/unusedfields.py +++ b/compilerplugins/clang/unusedfields.py @@ -97,7 +97,9 @@ for d in definitionSet: if srcLoc.startswith("cppu/source/uno/check.cxx"): continue fieldType = definitionToTypeMap[d] - if fieldType in set([ "class rptui::OModuleClient" ]): + if "ModuleClient" in fieldType: + continue + if "::sfx2::sidebar::ControllerItem" in fieldType: continue untouchedSet.add((d[0] + " " + d[1] + " " + fieldType, srcLoc)) @@ -118,6 +120,11 @@ for d in definitionSet: or srcLoc.startswith("lotuswordpro/source/filter/lwpsdwdrawheader.hxx") or srcLoc.startswith("svtools/source/dialogs/insdlg.cxx")): continue + fieldType = definitionToTypeMap[d] + if "ModuleClient" in fieldType: + continue + if "::sfx2::sidebar::ControllerItem" in fieldType: + continue writeonlySet.add((clazz + " " + definitionToTypeMap[d], srcLoc)) |