summaryrefslogtreecommitdiffstats
path: root/compilerplugins/clang/unusedfields.py
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-30 11:08:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-30 19:50:30 +0200
commit979d58c9a96884e36d1585df0c04c89b1f53fa99 (patch)
treebce40aad53ac5123a2864da59b8d889b8a51e577 /compilerplugins/clang/unusedfields.py
parentEditEngine: Changing export selection for copy/paste (diff)
downloadcore-979d58c9a96884e36d1585df0c04c89b1f53fa99.tar.gz
core-979d58c9a96884e36d1585df0c04c89b1f53fa99.zip
loplugin:unusedfields in toolkit..xmloff
Change-Id: I4964ff97e0a1735dc08c6ad204cae0b08e9ffc2c Reviewed-on: https://gerrit.libreoffice.org/39406 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins/clang/unusedfields.py')
-rwxr-xr-xcompilerplugins/clang/unusedfields.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/compilerplugins/clang/unusedfields.py b/compilerplugins/clang/unusedfields.py
index 0baf4c738cff..40b34b3b8a02 100755
--- a/compilerplugins/clang/unusedfields.py
+++ b/compilerplugins/clang/unusedfields.py
@@ -128,6 +128,9 @@ for d in definitionSet:
# ignore reference fields, because writing to them actually writes to another field somewhere else
if fieldType.endswith("&"):
continue
+ # ignore the import/export data model stuff
+ if srcLoc.startswith("sc/source/filter/inc/") and "Model" in fieldType:
+ continue
writeonlySet.add((clazz + " " + definitionToTypeMap[d], srcLoc))