summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-25 14:45:38 +0200
committerNoel Grandin <noel@peralex.com>2015-11-26 13:26:25 +0200
commitabc6071b7a8af354a56c91e4caecd8afc79f55cc (patch)
treeff8b64d3763a6192f8c67e750e830d7f3a6b13bf /compilerplugins
parent7c2edb3a67cf2e156f2134dc8f56fb6aac3045e2 (diff)
loplugin:unusedfields various
Change-Id: I18f94269a1172cf195ee402384f7144610e1e82d
Diffstat (limited to 'compilerplugins')
-rwxr-xr-xcompilerplugins/clang/unusedfields.py21
1 files changed, 18 insertions, 3 deletions
diff --git a/compilerplugins/clang/unusedfields.py b/compilerplugins/clang/unusedfields.py
index 9f3f16a9d4d8..2d51785cada9 100755
--- a/compilerplugins/clang/unusedfields.py
+++ b/compilerplugins/clang/unusedfields.py
@@ -57,10 +57,24 @@ for d in definitionSet:
if d in callSet:
continue
srcLoc = definitionToSourceLocationMap[d];
- if (srcLoc.startswith("include/")):
- continue
+ # ignore external source code
if (srcLoc.startswith("external/")):
continue
+ # ignore build folder
+ if (srcLoc.startswith("workdir/")):
+ continue
+ # ignore our stable/URE/UNO api
+ if (srcLoc.startswith("include/com/")
+ or srcLoc.startswith("include/cppu/")
+ or srcLoc.startswith("include/cppuhelper/")
+ or srcLoc.startswith("include/osl/")
+ or srcLoc.startswith("include/rtl/")
+ or srcLoc.startswith("include/sal/")
+ or srcLoc.startswith("include/salhelper/")
+ or srcLoc.startswith("include/systools/")
+ or srcLoc.startswith("include/typelib/")
+ or srcLoc.startswith("include/uno/")):
+ continue
# this is all representations of on-disk data structures
if (srcLoc.startswith("sc/source/filter/inc/scflt.hxx")
or srcLoc.startswith("sw/source/filter/ww8/")
@@ -69,7 +83,8 @@ for d in definitionSet:
or srcLoc.startswith("vcl/inc/unx/XIM.h")
or srcLoc.startswith("vcl/inc/unx/gtk/gloactiongroup.h")
or srcLoc.startswith("include/svl/svdde.hxx")
- or srcLoc.startswith("lotuswordpro/source/filter/lwpsdwdrawheader.hxx")):
+ or srcLoc.startswith("lotuswordpro/source/filter/lwpsdwdrawheader.hxx")
+ or srcLoc.startswith("svtools/source/dialogs/insdlg.cxx")):
continue
tmp1set.add((clazz + " " + definitionToTypeMap[d], srcLoc))