new loplugin:noexceptmove

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 30 August 2019 06:12 EDT

idea from mike kaganski

look for places where we can mark move operators as noexcept, which makes some STL operations more efficient

Change-Id: Id732b89d1fcadd5ceb0ea2b9d159fed06136330f Reviewed-on: https://gerrit.libreoffice.org/78251

6e4a2540d4d8 new loplugin:noexceptmove
compilerplugins/clang/noexceptmove.cxx | 319 ++++++++++++++++++++++
compilerplugins/clang/test/noexceptmove.cxx | 102 +++++++
connectivity/source/drivers/evoab2/NStatement.hxx | 2 +-
cppu/source/uno/lbmap.cxx | 4 +-
include/com/sun/star/uno/Reference.h | 4 +-
include/com/sun/star/uno/Reference.hxx | 4 +-
include/cppuhelper/weakref.hxx | 2 +-
include/osl/pipe.hxx | 4 +-
include/osl/pipe_decl.hxx | 4 +-
include/osl/socket.hxx | 4 +-
include/osl/socket_decl.hxx | 4 +-
include/registry/registry.hxx | 2 +-
include/rtl/byteseq.h | 4 +-
include/rtl/byteseq.hxx | 4 +-
include/rtl/ref.hxx | 2 +-
include/rtl/string.hxx | 4 +-
include/rtl/ustring.hxx | 4 +-
include/sfx2/objsh.hxx | 4 +-
include/store/store.hxx | 4 +-
include/tools/globname.hxx | 4 +-
include/tools/poly.hxx | 4 +-
include/typelib/typedescription.hxx | 4 +-
include/uno/dispatcher.hxx | 2 +-
include/uno/environment.hxx | 2 +-
include/uno/mapping.hxx | 4 +-
include/unotools/itemholderbase.hxx | 2 +-
include/unotools/tempfile.hxx | 2 +-
include/vcl/alpha.hxx | 2 +-
include/vcl/font.hxx | 4 +-
include/vcl/region.hxx | 4 +-
solenv/CompilerTest_compilerplugins_clang.mk | 1 +
sw/inc/IDocumentMarkAccess.hxx | 4 +-
sw/source/core/doc/docbm.cxx | 4 +-
tools/source/generic/poly.cxx | 4 +-
tools/source/ref/globname.cxx | 2 +-
unotools/source/ucbhelper/tempfile.cxx | 2 +-
vcl/source/font/font.cxx | 4 +-
vcl/source/gdi/region.cxx | 4 +-
38 files changed, 481 insertions(+), 59 deletions(-)

Upstream: cgit.freedesktop.org


  • Share