look for fields that only have a single constant value assigned to them
8d861bd new loplugin: singlevalfields
compilerplugins/clang/constantparam.cxx | 3 +-
compilerplugins/clang/singlevalfields.cxx | 411 +++++++++++++++++++++++++++++
compilerplugins/clang/singlevalfields.py | 69 +++++
3 files changed, 481 insertions(+), 2 deletions(-)
Upstream: cgit.freedesktop.org