loplugin:unusedenumconstants in package..svtools

Change-Id: I8136b93b9303ebecafd791159e813c335b1bc172
Reviewed-on: https://gerrit.libreoffice.org/28052
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Noel Grandin
2016-08-11 15:02:19 +02:00
committed by Noel Grandin
parent 500a3be0ea
commit d30a4298bd
30 changed files with 25 additions and 270 deletions

View File

@@ -69,6 +69,16 @@ for d in definitionSet:
or srcLoc.startswith("include/typelib/")
or srcLoc.startswith("include/uno/")):
continue
# definitions of external file formats
if (srcLoc.startswith("include/svx/msdffdef.hxx"):
continue
# used in templates to find the last member of an enum
if (d1.endswith("LAST"):
continue
# used to aid in alignment of enum values
if (d1.endswith("FORCE_EQUAL_SIZE"):
continue
untouchedSet.add((clazz, srcLoc))
# sort the results using a "natural order" so sequences like [item1,item2,item10] sort nicely