new loplugin:methodcycles

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 21 September 2018 16:44 EDT

look for closed cycles of methods i.e. unused code that would not otherwise be found by the unusedmethods loplugin

Change-Id: I3fb052132d97aabca573bb8e9fc424201b1e2042 Reviewed-on: https://gerrit.libreoffice.org/60875

4c945b22fc42 new loplugin:methodcycles
basic/source/sbx/sbxarray.cxx | 50 ----
basic/source/sbx/sbxcoll.cxx | 13 -
basic/source/sbx/sbxobj.cxx | 32 ---
compilerplugins/clang/methodcycles.cxx | 382 +++++++++++++++++++++++++++++
compilerplugins/clang/methodcycles.py | 242 ++++++++++++++++++
compilerplugins/clang/methodcycles.results | 65 +++++
compilerplugins/clang/unusedmethods.cxx | 13 +-
connectivity/source/parse/sqliterator.cxx | 67 -----
include/basic/sbx.hxx | 2 -
include/basic/sbxobj.hxx | 1 -
include/connectivity/sqliterator.hxx | 5 -
include/vcl/outdev.hxx | 2 -
sw/inc/dbgoutsw.hxx | 1 -
sw/source/core/doc/dbgoutsw.cxx | 71 ------
vcl/source/outdev/pixel.cxx | 67 -----
15 files changed, 698 insertions(+), 315 deletions(-)

Upstream: cgit.freedesktop.org


  • Share