loplugin:singlevalfields add checking for static class fields

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 5 December 2018 09:45 EST

which required a completely different set of code

Also add checking for in-class initialiser on struct/class fields

Change-Id: I31e1586975aaafe23996619e2f59678c5fbc390f Reviewed-on: https://gerrit.libreoffice.org/64593

84568fb1badc loplugin:singlevalfields add checking for static class fields
.../clang/singlevalfields.could-be-bool.results | 6 +-
compilerplugins/clang/singlevalfields.cxx | 104 +++++++++++---
compilerplugins/clang/singlevalfields.results | 151 +++++++++++++--------
3 files changed, 180 insertions(+), 81 deletions(-)

Upstream: cgit.freedesktop.org


  • Share