summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-12-03 09:53:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-12-04 10:22:09 +0100
commit5155e21bf1c511fa844010b9d07e2bfcb9ce8570 (patch)
tree482c9b1e9cb5a49c10ee07713ae245f4f2f86dbd /compilerplugins
parentd28fcb3e26497ab1982ffcaee613e33821773c2a (diff)
loplugin:unusedfields
Change-Id: Iac4a64af74c92cbd76335faa62e51fa80ef21789 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177718 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rwxr-xr-xcompilerplugins/clang/unusedfields.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/compilerplugins/clang/unusedfields.py b/compilerplugins/clang/unusedfields.py
index bbfbd0164dca..83e21bb8df62 100755
--- a/compilerplugins/clang/unusedfields.py
+++ b/compilerplugins/clang/unusedfields.py
@@ -174,13 +174,8 @@ for d in definitionSet:
if "Guard" in fieldType:
continue
# these are just all model classes
- if (srcLoc.startswith("oox/")
- or srcLoc.startswith("lotuswordpro/")
- or srcLoc.startswith("include/oox/")
- or srcLoc.startswith("include/filter/")
- or srcLoc.startswith("hwpfilter/")
- or srcLoc.startswith("filter/")
- or srcLoc.startswith("vcl/source/filter/")):
+ if (srcLoc.startswith("lotuswordpro/")
+ or srcLoc.startswith("hwpfilter/")):
continue
if "(lambda at " in d[0]:
continue