loplugin:unusedfields improve write-only logic

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 13 December 2018 07:37 EST

when dealing with modifications to container classes (e.g. std::vector)

Change-Id: Ic30043631007355ee9a3d9e3f9b6488b435182d6 Reviewed-on: https://gerrit.libreoffice.org/65050

61dfcdda8854 loplugin:unusedfields improve write-only logic
compilerplugins/clang/test/unusedfields.cxx | 20 +--
compilerplugins/clang/unusedfields.cxx | 10 +-
.../unusedfields.only-used-in-constructor.results | 24 +--
.../clang/unusedfields.readonly.results | 68 ++++----
.../clang/unusedfields.untouched.results | 12 +-
.../clang/unusedfields.writeonly.results | 182 +++++++++++++++++++--
solenv/CompilerTest_compilerplugins_clang.mk | 5 +-
7 files changed, 239 insertions(+), 82 deletions(-)

Upstream: cgit.freedesktop.org


  • Share