Flag specific macro arguments that have no typechecking with suffix ?

This commit is contained in:
Eric S. Raymond 2010-02-08 18:26:07 +00:00
parent ba1eb08519
commit e66a6eacf6

View file

@ -259,6 +259,9 @@ class CrossRefLister(CrossRef):
defcount += 1
callcount += len(defn.references)
if None in map(formaltype, defn.args):
for (i, d) in enumerate(defn.args):
if formaltype(d) is None:
defn.args[i] += "?"
unchecked.append((name, defn))
unresolvedcount += len(defn.references)
if unchecked: