Reveal the candidates when macroscope has a name collision.
This commit is contained in:
parent
c64898235a
commit
96a1f8c597
1 changed files with 4 additions and 4 deletions
|
@ -330,14 +330,14 @@ class CrossRef:
|
|||
if key:
|
||||
self.fileref[key].append(fn, n+1)
|
||||
else:
|
||||
candidates = 0
|
||||
candidates = []
|
||||
for trial in self.fileref:
|
||||
if trial.endswith(os.sep + name) and self.visible_from(trial, fn, n):
|
||||
key = trial
|
||||
self.fileref[trial].append(fn, n+1)
|
||||
candidates += 1
|
||||
if candidates > 1:
|
||||
print "%s: more than one definition of %s is visible here." % (reference(fn, n), name)
|
||||
candidates.append(trial)
|
||||
if len(candidates) > 1:
|
||||
print "%s: more than one definition of %s is visible here (%s)." % (reference(fn, n), name, ", ".join(candidates))
|
||||
if not key:
|
||||
self.missing.append((name, reference(fn,n+1)))
|
||||
rfp.close()
|
||||
|
|
Loading…
Add table
Reference in a new issue