new loplugin:returnconstant

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 25 July 2018 13:17 EDT

look for methods that always return the same value

Change-Id: I5f1c5b58a985ecf5f7765a2d4ebd464eae5ef76f Reviewed-on: https://gerrit.libreoffice.org/57973

fdc50b0a1b97 new loplugin:returnconstant
compilerplugins/clang/pluginhandler.cxx | 2 +-
compilerplugins/clang/returnconstant.cxx | 666 +++++++++++++++++++++++++++++++
2 files changed, 667 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share