summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-20 08:44:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-20 10:07:10 +0200
commit1c5cae479bebd2d325182adc2c9821fd948fd1bd (patch)
tree639e50ced55620dc2d1e9eb5a7ed8a6298c4de09 /compilerplugins
parentda24355234ec12f2f4c652113dbbb1216ba5492c (diff)
loplugin:unusedmethods
Change-Id: Ib7a9b1b0802ca751da258065e89b412b090bb672 Reviewed-on: https://gerrit.libreoffice.org/36718 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rwxr-xr-xcompilerplugins/clang/unusedmethods.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/compilerplugins/clang/unusedmethods.py b/compilerplugins/clang/unusedmethods.py
index a3368f45f921..6ed900d97e15 100755
--- a/compilerplugins/clang/unusedmethods.py
+++ b/compilerplugins/clang/unusedmethods.py
@@ -28,7 +28,7 @@ usedReturnSet = set() # set of tuple(return_type, name_and_params)
unusedMethodsExclusionSet = set([
# only used by Windows build
"_Bool basegfx::B2ITuple::equalZero() const",
- "class basegfx::B2DPolyPolygon basegfx::unotools::UnoPolyPolygon::getPolyPolygonUnsafe() const",
+ "const class basegfx::B2DPolyPolygon & basegfx::unotools::UnoPolyPolygon::getPolyPolygonUnsafe() const",
"void basegfx::B2IRange::expand(const class basegfx::B2IRange &)",
"void OpenGLContext::requestSingleBufferedRendering()",
"_Bool TabitemValue::isBothAligned() const",
@@ -263,6 +263,10 @@ for d in definitionSet:
if location.startswith("include/test"): continue
# leave the debug/dump alone
if location.startswith("include/oox/dump"): continue
+ # plugin testing stuff
+ if location.startswith("compilerplugins/clang/test"): continue
+ # leave this alone for now
+ if location.startswith("include/LibreOfficeKit"): continue
unusedSet.add(d) # used by the "unused return types" analysis
tmp1set.add((method, location))