new loplugin:unusedvariablemore

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 11 April 2018 07:48 EDT

collection of heuristics to look for local variables that are never read from i.e. do not contribute to the surrounding logic

This is an expensive plugin, since it walks up the parent tree, so it is off by default.

Change-Id: Ib8ba292241bd16adf299e8bba4502cb473513a06 Reviewed-on: https://gerrit.libreoffice.org/52450

49eb02f07a5a new loplugin:unusedvariablemore
basctl/source/basicide/localizationmgr.cxx | 3 -
chart2/source/view/main/ShapeFactory.cxx | 2 -
compilerplugins/clang/test/unusedvariablemore.cxx | 58 ++++
compilerplugins/clang/unusedvariablemore.cxx | 347 +++++++++++++++++++++
connectivity/source/drivers/mork/MConnection.cxx | 2 -
.../source/drivers/postgresql/pq_tools.cxx | 10 +-
cui/source/customize/cfg.cxx | 2 -
cui/source/dialogs/scriptdlg.cxx | 5 +-
cui/source/options/optsave.cxx | 3 -
cui/source/tabpages/chardlg.cxx | 7 -
cui/source/tabpages/textanim.cxx | 3 -
cui/source/tabpages/transfrm.cxx | 3 -
dbaccess/source/filter/xml/xmlDataSourceInfo.cxx | 2 -
dbaccess/source/ui/control/tabletree.cxx | 23 +-
dbaccess/source/ui/dlg/generalpage.cxx | 16 +-
.../source/primitive2d/sceneprimitive2d.cxx | 2 -
emfio/source/reader/wmfreader.cxx | 7 +-
extensions/source/propctrlr/eventhandler.cxx | 3 -
formula/source/ui/dlg/formula.cxx | 3 -
.../source/uielement/complextoolbarcontroller.cxx | 2 -
include/test/testinteractionhandler.hxx | 4 -
include/vcl/edit.hxx | 2 +-
jvmfwk/source/framework.cxx | 2 -
package/source/manifest/ManifestExport.cxx | 4 +-
reportdesign/source/core/api/ReportDefinition.cxx | 2 -
sc/source/core/data/table6.cxx | 4 -
sc/source/core/tool/interpr1.cxx | 2 -
sc/source/filter/html/htmlpars.cxx | 8 -
sc/source/ui/dbgui/tpsort.cxx | 10 -
sc/source/ui/view/dbfunc3.cxx | 2 -
sc/source/ui/view/formatsh.cxx | 6 -
sd/source/core/drawdoc4.cxx | 3 -
sd/source/core/sdpage.cxx | 3 -
sd/source/ui/dlg/docprev.cxx | 7 -
sd/source/ui/view/drviews5.cxx | 3 -
sdext/source/presenter/PresenterNotesView.cxx | 8 -
sdext/source/presenter/PresenterSlideSorter.cxx | 3 +-
.../sessioninstall/SyncDbusSessionHelper.cxx | 2 -
solenv/CompilerTest_compilerplugins_clang.mk | 1 +
starmath/source/mathtype.cxx | 4 +-
svgio/source/svgreader/svgtools.cxx | 4 +-
svx/source/items/numfmtsh.cxx | 11 -
svx/source/svdraw/svdobj.cxx | 7 -
svx/source/svdraw/svdotextdecomposition.cxx | 6 +-
sw/source/core/doc/docbasic.cxx | 5 +-
sw/source/core/undo/unins.cxx | 3 -
sw/source/core/unocore/unocrsrhelper.cxx | 5 +-
sw/source/core/unocore/unofield.cxx | 4 -
sw/source/filter/html/htmlftn.cxx | 4 +-
sw/source/filter/html/htmlplug.cxx | 3 +-
sw/source/filter/html/swhtml.cxx | 4 -
sw/source/filter/ww8/ww8par5.cxx | 4 +-
sw/source/filter/xml/xmltbli.cxx | 6 -
sw/source/uibase/shells/tabsh.cxx | 4 -
ucb/source/ucp/webdav-neon/webdavcontent.cxx | 5 -
unotools/source/config/viewoptions.cxx | 9 +-
unotools/source/ucbhelper/ucblockbytes.cxx | 5 +-
vcl/source/control/edit.cxx | 8 +-
vcl/source/window/splitwin.cxx | 3 -
writerfilter/source/dmapper/DomainMapper_Impl.cxx | 10 +-
xmloff/source/forms/propertyexport.cxx | 3 -
xmlscript/source/xmldlg_imexp/xmldlg_import.cxx | 2 -
62 files changed, 433 insertions(+), 265 deletions(-)

Upstream: cgit.freedesktop.org


  • Share