diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-20 08:44:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-20 10:07:10 +0200 |
commit | 1c5cae479bebd2d325182adc2c9821fd948fd1bd (patch) | |
tree | 639e50ced55620dc2d1e9eb5a7ed8a6298c4de09 /compilerplugins | |
parent | da24355234ec12f2f4c652113dbbb1216ba5492c (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-x | compilerplugins/clang/unusedmethods.py | 6 |
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)) |