new loplugin:sequenceloop
commit7d7a7862a7dccb6764f80258f28685a0da3cbbcb
authorNoel Grandin <noel.grandin@collabora.co.uk>
Wed, 14 Aug 2019 09:14:08 +0000 (14 11:14 +0200)
committerNoel Grandin <noel.grandin@collabora.co.uk>
Fri, 16 Aug 2019 07:04:51 +0000 (16 09:04 +0200)
treeb7281950f84b12c4868542f103a23c1460d22863
parentabeab40aeb2bf16c1438b5e5f0cd70b3e11f6b7a
new loplugin:sequenceloop

look for places we should be using std::as_const on for-range
loops over uno::Sequence, to avoid triggering a copy

Change-Id: I7efb641bf09d37c87946f03428ee4eec90298c8a
Reviewed-on: https://gerrit.libreoffice.org/77441
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
17 files changed:
compilerplugins/clang/sequenceloop.cxx [new file with mode: 0644]
compilerplugins/clang/test/sequenceloop.cxx [new file with mode: 0644]
editeng/source/accessibility/AccessibleEditableTextPara.cxx
filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
filter/source/xsltdialog/xmlfiltertestdialog.cxx
lingucomponent/source/spellcheck/spell/sspellimp.cxx
solenv/CompilerTest_compilerplugins_clang.mk
xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
xmlscript/source/xmlflat_imexp/xmlbas_export.cxx
xmlsecurity/qa/unit/signing/signing.cxx
xmlsecurity/source/dialogs/certificatechooser.cxx
xmlsecurity/source/dialogs/macrosecurity.cxx
xmlsecurity/source/helper/documentsignaturehelper.cxx
xmlsecurity/source/helper/documentsignaturemanager.cxx
xmlsecurity/source/helper/ooxmlsecexporter.cxx
xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx