From d30a4298bdb5ba53cd1fe659f2b742f218a2e527 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 11 Aug 2016 15:02:19 +0200 Subject: loplugin:unusedenumconstants in package..svtools Change-Id: I8136b93b9303ebecafd791159e813c335b1bc172 Reviewed-on: https://gerrit.libreoffice.org/28052 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- compilerplugins/clang/unusedenumvalues.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'compilerplugins') 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 -- cgit