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