new loplugin writeonlyvars

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 11 February 2019 12:25 EST

largely based on the relevant portion of the unusedfields loplugin, but adapted for local vars

Change-Id: Ic522a941573940e8f75c88f90ba5f37508ca49b1 Reviewed-on: https://gerrit.libreoffice.org/66835

0d1253c23281 new loplugin writeonlyvars
basctl/source/dlged/dlgedobj.cxx | 4 +-
basic/source/classes/sbunoobj.cxx | 3 -
basic/source/comp/exprgen.cxx | 2 -
chart2/source/view/charttypes/NetChart.cxx | 5 -
chart2/source/view/main/ChartView.cxx | 2 -
compilerplugins/clang/test/writeonlyvars.cxx | 147 +++
compilerplugins/clang/writeonlyvars.cxx | 1148 ++++++++++++++++++++
connectivity/source/drivers/dbase/DTable.cxx | 35 +-
.../source/drivers/firebird/Connection.cxx | 5 -
connectivity/source/drivers/firebird/Table.cxx | 3 +-
connectivity/source/drivers/mork/MorkParser.cxx | 3 -
cui/source/dialogs/hldocntp.cxx | 6 +-
cui/source/options/treeopt.cxx | 5 +-
dbaccess/source/filter/xml/xmlExport.cxx | 2 -
dbaccess/source/filter/xml/xmlfilter.cxx | 5 -
dbaccess/source/ui/browser/unodatbr.cxx | 2 -
dbaccess/source/ui/misc/RowSetDrop.cxx | 4 -
dbaccess/source/ui/misc/TokenWriter.cxx | 2 -
.../ui/relationdesign/RTableConnectionData.cxx | 2 -
filter/source/flash/swffilter.cxx | 6 +-
filter/source/graphicfilter/idxf/dxf2mtf.cxx | 2 -
filter/source/odfflatxml/OdfFlatXml.cxx | 3 -
filter/source/xsltfilter/XSLTFilter.cxx | 9 +-
framework/source/layoutmanager/layoutmanager.cxx | 5 -
framework/source/uielement/menubarmanager.cxx | 3 -
framework/source/uielement/statusbarmanager.cxx | 5 -
framework/source/uielement/toolbarmerger.cxx | 2 -
.../source/uielement/uicommanddescription.cxx | 3 -
l10ntools/source/idxdict/idxdict.cxx | 2 -
oox/source/export/shapes.cxx | 6 -
reportdesign/source/core/api/ReportDefinition.cxx | 4 -
sc/source/core/data/documen2.cxx | 3 -
sc/source/core/data/table3.cxx | 4 +-
sc/source/ui/unoobj/PivotTableDataProvider.cxx | 15 -
sc/source/ui/vba/vbaworkbook.cxx | 2 -
sc/source/ui/view/gridwin5.cxx | 3 -
scripting/source/dlgprov/dlgevtatt.cxx | 2 -
sd/source/ui/unoidl/UnoDocumentSettings.cxx | 2 -
sdext/source/presenter/PresenterSlidePreview.cxx | 15 -
sdext/source/presenter/PresenterTextView.cxx | 9 -
sdext/source/presenter/PresenterToolBar.cxx | 3 -
sfx2/source/bastyp/fltfnc.cxx | 5 -
sfx2/source/dialog/backingwindow.cxx | 12 -
sfx2/source/notebookbar/NotebookbarTabControl.cxx | 3 -
solenv/CompilerTest_compilerplugins_clang.mk | 1 +
soltools/mkdepend/main.c | 7 +-
soltools/mkdepend/pr.c | 4 +-
stoc/source/inspect/introspection.cxx | 4 -
svtools/source/contnr/fileview.cxx | 8 -
svtools/source/contnr/imivctl1.cxx | 6 -
svx/source/customshapes/EnhancedCustomShape2d.cxx | 2 -
svx/source/fmcomp/fmgridcl.cxx | 14 +-
svx/source/form/fmshimp.cxx | 2 -
sw/source/core/unocore/unochart.cxx | 5 +-
sw/source/filter/docx/swdocxreader.cxx | 2 -
sw/source/filter/ww8/ww8par3.cxx | 3 -
sw/source/filter/xml/xmltexte.cxx | 10 +-
sw/source/ui/dbui/addresslistdialog.cxx | 8 +-
sw/source/uibase/app/apphdl.cxx | 3 -
sw/source/uibase/dbui/dbtree.cxx | 5 +-
sw/source/uibase/docvw/srcedtw.cxx | 2 -
toolkit/source/awt/vclxwindow.cxx | 6 -
ucb/source/ucp/file/filtask.cxx | 4 +-
vcl/source/window/builder.cxx | 2 -
vcl/source/window/printdlg.cxx | 8 -
vcl/unx/generic/glyphs/freetype_glyphcache.cxx | 8 -
vcl/unx/gtk/salprn-gtk.cxx | 6 -
writerfilter/source/dmapper/FontTable.cxx | 8 +-
writerfilter/source/ooxml/OOXMLDocumentImpl.cxx | 4 -
.../source/cxxhelp/provider/resultsetforquery.cxx | 3 -
70 files changed, 1335 insertions(+), 313 deletions(-)

Upstream: cgit.freedesktop.org


  • Share