new loplugin sequentialassign

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 11 April 2019 06:52 EDT

Look for places we are assigning to the same variable twice in succession, which means we can simplify that to a single assign

Change-Id: I499d20e28f5595e81e927bef8e1bf364eea8ba91 Reviewed-on: https://gerrit.libreoffice.org/70531

b65f3fbb2bee new loplugin sequentialassign
compilerplugins/clang/sequentialassign.cxx | 331 ++++++++++++++++++++++++
compilerplugins/clang/test/sequentialassign.cxx | 95 +++++++
solenv/CompilerTest_compilerplugins_clang.mk | 1 +
3 files changed, 427 insertions(+)

Upstream: cgit.freedesktop.org


  • Share