new loplugin collapseif

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 6 November 2018 06:45 EST

Look for nested if statements with relatively small conditions, where they can be collapsed into one if statement.

Change-Id: I7d5d4e418d0ce928991a3308fc88969c00c0d0f2 Reviewed-on: https://gerrit.libreoffice.org/62898

347f3475805f new loplugin collapseif
compilerplugins/clang/collapseif.cxx | 129 +++++++++++++++++++++++++++
compilerplugins/clang/test/collapseif.cxx | 55 ++++++++++++
solenv/CompilerTest_compilerplugins_clang.mk | 1 +
3 files changed, 185 insertions(+)

Upstream: cgit.freedesktop.org


  • Share