new loplugin mergeclasses

Desktop / LibreOffice - Noel Grandin [peralex.com] - 8 September 2015 01:09 UTC

Idea from Norbert (shm_get) - look for classes that are (a) not instantiated (b) have zero or one subclasses and warn about them - would allow us to remove a bunch of abstract classes that can be merged into one class and simplified

d7efea2 new loplugin mergeclasses
compilerplugins/clang/mergeclasses.cxx | 199 +++++++++++++++++++
compilerplugins/clang/mergeclasses.py | 73 +++++++
mergeclasses.results | 334 ++++++++++++++++++++++++++++++++
3 files changed, 606 insertions(+)

Upstream: cgit.freedesktop.org


  • Share