Genius suggestion from Tor Lillqvist, write a clang plugin that finds methods that can be static.
c4a9241 new clang plugin: staticmethods
comphelper/source/misc/componentbase.cxx | 2 +-
comphelper/source/property/MasterPropertySet.cxx | 16 ++-
compilerplugins/clang/compat.hxx | 10 ++
compilerplugins/clang/literaltoboolconversion.cxx | 15 +--
compilerplugins/clang/staticmethods.cxx | 141 +++++++++++++++++++++
include/comphelper/ChainablePropertySet.hxx | 10 +-
include/comphelper/MasterPropertySet.hxx | 10 +-
include/comphelper/accessibletexthelper.hxx | 6 +-
include/comphelper/componentbase.hxx | 4 +-
include/comphelper/numberedcollection.hxx | 4 +-
include/comphelper/propertycontainer.hxx | 2 +-
include/comphelper/propstate.hxx | 2 +-
12 files changed, 182 insertions(+), 40 deletions(-)
Upstream: cgit.freedesktop.org