loplugin:mergeclasses

don't filter out "Base", reveals some interesting stuff

Change-Id: I62a36e70bce8e6e1346f78395dc1d32fbd8a0ddd
Reviewed-on: https://gerrit.libreoffice.org/84107
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2019-11-29 15:03:16 +02:00
parent 964dec70d0
commit 9f38f9304e
2 changed files with 137 additions and 63 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python2
import sys
@@ -61,7 +61,7 @@ with open("compilerplugins/clang/mergeclasses.results", "wt") as f:
if (clazz not in parentChildDict) or (len(parentChildDict[clazz]) != 1):
continue
# exclude some common false positives
a = ['Dialog', 'Dlg', 'com::sun', 'Base']
a = ['Dialog', 'Dlg', 'com::sun']
if any(x in clazz for x in a):
continue
# ignore base class that contain the word "mutex", they are normally there to