loplugin:unusedenumconstants improvements

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 20 November 2018 13:48 EST

add some unit tests, and improve the heuristics

Change-Id: I95aa97a87e178ce8d506bd245710d0ae66ad08a4 Reviewed-on: https://gerrit.libreoffice.org/63647

5e2322ec8484 loplugin:unusedenumconstants improvements
compilerplugins/clang/test/unusedenumconstants.cxx | 92 +
compilerplugins/clang/unusedenumconstants.cxx | 133 +-
.../clang/unusedenumconstants.readonly.results | 1494 +-
.../clang/unusedenumconstants.untouched.results | 246 +-
.../clang/unusedenumconstants.writeonly.results | 16716 ++++++++-----------
solenv/CompilerTest_compilerplugins_clang.mk | 1 +
6 files changed, 8183 insertions(+), 10499 deletions(-)

Upstream: cgit.freedesktop.org


  • Share