new loplugin:stringviewdangle

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 30 April 2022 19:20 UTC

to find places where string_view is pointing into a temporary String

Change-Id: Ib530b36f441e95d83d8f687d40a97516a0806721 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133656

40077fe30919 new loplugin:stringviewdangle
compilerplugins/clang/stringviewdangle.cxx | 117 ++++++++++++++++++++++++
compilerplugins/clang/test/stringviewdangle.cxx | 37 ++++++++
solenv/CompilerTest_compilerplugins_clang.mk | 1 +
svx/source/tbxctrls/StylesPreviewWindow.cxx | 4 +-
vcl/jsdialog/executor.cxx | 10 +-
5 files changed, 162 insertions(+), 7 deletions(-)

Upstream: cgit.freedesktop.org


  • Share