summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-11 15:02:19 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-08-12 06:58:39 +0000
commitd30a4298bdb5ba53cd1fe659f2b742f218a2e527 (patch)
tree504f4f5e1d498276779105b711e4c30744dea1c2 /compilerplugins
parent500a3be0ea9184fc2823d704acf4037f70c6721e (diff)
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>
Diffstat (limited to 'compilerplugins')
-rwxr-xr-xcompilerplugins/clang/unusedenumvalues.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/compilerplugins/clang/unusedenumvalues.py b/compilerplugins/clang/unusedenumvalues.py
index 1573865eca4e..746abe26d5d0 100755
--- a/compilerplugins/clang/unusedenumvalues.py
+++ b/compilerplugins/clang/unusedenumvalues.py
@@ -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