summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/finalclasses.py
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-12 11:14:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-12 12:41:01 +0200
commit85cf4d25a3df3da86840c69bc035d58212a9672c (patch)
treeb8396222ee62d9192d83550f95276a7e008fca82 /compilerplugins/clang/finalclasses.py
parent0d7193bd2cd2f1bd24232095d7617f0764c58a9b (diff)
loplugin:mergeclasses fix ignoring some stuff
Seems that calling getCanonicalDecl here results in us sometimes picking up forward-decl's, which hides stuff Also make the python processing code spit out a message if I manage to mess up the log files Change-Id: I08bf50eb26cf463c126507b51535b0a0fc9f7ecf
Diffstat (limited to 'compilerplugins/clang/finalclasses.py')
-rwxr-xr-xcompilerplugins/clang/finalclasses.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/compilerplugins/clang/finalclasses.py b/compilerplugins/clang/finalclasses.py
index d2d4f695b8a1..f6c15ca2c87d 100755
--- a/compilerplugins/clang/finalclasses.py
+++ b/compilerplugins/clang/finalclasses.py
@@ -29,6 +29,9 @@ with open("workdir/loplugin.finalclasses.log") as txt:
parent = parent[7:]
inheritFromSet.add(parent);
+ else:
+ print( "unknown line: " + line)
+
tmpset = set()
for clazz in sorted(definitionSet - inheritFromSet):
file = definitionToFileDict[clazz]