add the 'Unresolved reference' in each reported line...
...instead of adding one comment
This commit is contained in:
parent
638d87c817
commit
79f2309489
1 changed files with 5 additions and 6 deletions
|
@ -10,7 +10,7 @@
|
|||
# It also checks actual macro arguments against types implied by the formals
|
||||
#
|
||||
# (Most of the work is done by a cross-referencer class that is also
|
||||
# used elsewhere, e.g. by wmlmove.)
|
||||
# used elsewhere, e.g. by wmlmove.)
|
||||
#
|
||||
# It takes a list of directories as arguments; if none is given, it
|
||||
# behaves as though the current directory had been specified as a
|
||||
|
@ -50,7 +50,7 @@
|
|||
#
|
||||
# will cause wmlscope to forget about all but one of the definitions of FOOBAR
|
||||
# it has seen. This will be useful mainly for symbols that have different
|
||||
# definitions enabled by an #ifdef.
|
||||
# definitions enabled by an #ifdef.
|
||||
#
|
||||
#
|
||||
# This tool does catch one kind of implicit reference: if an attack name
|
||||
|
@ -166,9 +166,8 @@ class CrossRefLister(CrossRef):
|
|||
print "# No unresolved references"
|
||||
else:
|
||||
#print self.fileref.keys()
|
||||
print "# Unresolved references:"
|
||||
for (name, reference) in self.unresolved + self.missing:
|
||||
print "%s -> %s" % (reference, name)
|
||||
print "%s: Unresolved reference -> %s" % (reference, name)
|
||||
mismatched = []
|
||||
sorted = self.xref.keys()
|
||||
sorted.sort()
|
||||
|
@ -346,7 +345,7 @@ Usage: macroscope [options] dirpath
|
|||
Options may be any of these:
|
||||
-h, --help Emit this help message and quit
|
||||
-c, --crossreference Report resolved macro references (implies -w 1)
|
||||
-C, --collisions Report duplicate resource files
|
||||
-C, --collisions Report duplicate resource files
|
||||
-d, --deflist Make definition list
|
||||
-e regexp, --exclude regexp Ignore files matching the specified regular expression
|
||||
-f regexp, --from regexp Report only on things defined in files matching regexp
|
||||
|
@ -489,5 +488,5 @@ Usage: macroscope [options] dirpath
|
|||
xref.duplicates(exportonly=True)
|
||||
except KeyboardInterrupt:
|
||||
print >>sys.stderr, "wmlscope: aborted."
|
||||
|
||||
|
||||
# wmlscope ends here
|
||||
|
|
Loading…
Add table
Reference in a new issue