diff options
Diffstat (limited to 'compilerplugins/clang/unusedenumvalues.py')
-rwxr-xr-x | compilerplugins/clang/unusedenumvalues.py | 10 |
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 |