diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-20 15:39:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-23 08:55:53 +0200 |
commit | 05eda0dc19af81ed0d5167bdd0a92113e6e8bc60 (patch) | |
tree | cbb93df5b0b7f864055a964f786cd36f093545bb /compilerplugins | |
parent | 56b2a2d874c5c74af0eb02d6d542f4dc9d748870 (diff) |
loplugin:unusedfields in sc
Change-Id: If5123e676a27302f3e11475309bc748977c6f430
Diffstat (limited to 'compilerplugins')
-rwxr-xr-x | compilerplugins/clang/unusedfields.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/compilerplugins/clang/unusedfields.py b/compilerplugins/clang/unusedfields.py index 40b5defb999f..4b9b6aa93131 100755 --- a/compilerplugins/clang/unusedfields.py +++ b/compilerplugins/clang/unusedfields.py @@ -53,12 +53,16 @@ for d in definitionSet: continue if d in callSet: continue - if (definitionToSourceLocationMap[d].startswith("include/")): + srcLoc = definitionToSourceLocationMap[d]; + if (srcLoc.startswith("include/")): continue - if (definitionToSourceLocationMap[d].startswith("external/")): + if (srcLoc.startswith("external/")): + continue + # this is all representations of on-disk data structures + if (srcLoc == "sc/source/filter/inc/scflt.hxx"): continue - tmp1set.add((clazz, definitionToSourceLocationMap[d])) + tmp1set.add((clazz, srcLoc)) # sort the results using a "natural order" so sequences like [item1,item2,item10] sort nicely def natural_sort_key(s, _nsre=re.compile('([0-9]+)')): |