Treat unexpected Doxygen output as warnings

Change the Doxygen output filter so that the Travis job fails when it
encounters something unexpected.

Previously, it was printing a message to the log when it encountered
something unexpected, but not changing the return code.  For example,
around 2018-11-14 (see e.g. commit af4b0b7de), the Travis job succeeded
because this warning was not recognised:

  <unknown>:97: warning: unable to resolve reference to
  `instrumentation' for \ref command
This commit is contained in:
John Nonweiler 2018-12-03 16:19:30 +00:00
parent 093310be33
commit 4833d79584
1 changed files with 4 additions and 3 deletions

View File

@ -55,10 +55,11 @@ class WarningsList(object):
elif line.startswith(' '):
current.otherlines.append(line.strip())
else:
# Assuming all warnings are of the form [path:line: warning:...]
# Warnings are usually of the form [path:line: warning:...]
# (and the warnings about too many nodes have been filtered out).
print('Error filtering warnings: Unexpected input format.')
print(' Input:' + line)
# Treat any unexpected input lines as warnings.
current = DoxygenWarning(line, '', line)
self.warnings_list.append(current)
def contains(self, warning):
"""Check if a similar warning is in this list."""