loplugin:unusedenumconstants in EEControlBits

(*) remove effectivly unused enum constants

(*) tweak the plugins heuristics some more to remove false+ in this enum

(*) twweak the python post-processing step to avoid a KeyError

Change-Id: I2943ec94c00f71dcd049f5c9ef33db259c005ba3
Reviewed-on: https://gerrit.libreoffice.org/63709
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2018-11-21 13:34:02 +02:00
parent 2e6a38b7f0
commit bab2753312
13 changed files with 1116 additions and 1322 deletions

View File

@@ -205,6 +205,9 @@ writeonlySet = set()
for d in writeSet:
if d in readSet:
continue
# can happen with stuff in workdir or external
if d not in definitionSet:
continue
srcLoc = definitionToSourceLocationMap[d];
if (is_ignore(srcLoc)):
continue
@@ -214,6 +217,9 @@ readonlySet = set()
for d in readSet:
if d in writeSet:
continue
# can happen with stuff in workdir or external
if d not in definitionSet:
continue
srcLoc = definitionToSourceLocationMap[d];
if (is_ignore(srcLoc)):
continue