Skip to content

Commit 0b31412

Browse files
Merge pull request #3523 from johnnonweiler/doxygen-fail-on-unexpected-output
Treat unexpected Doxygen output as warnings
2 parents 6a0cafa + 4833d79 commit 0b31412

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/filter_expected_warnings.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ def __init__(self, all_lines):
5555
elif line.startswith(' '):
5656
current.otherlines.append(line.strip())
5757
else:
58-
# Assuming all warnings are of the form [path:line: warning:...]
58+
# Warnings are usually of the form [path:line: warning:...]
5959
# (and the warnings about too many nodes have been filtered out).
60-
print('Error filtering warnings: Unexpected input format.')
61-
print(' Input:' + line)
60+
# Treat any unexpected input lines as warnings.
61+
current = DoxygenWarning(line, '', line)
62+
self.warnings_list.append(current)
6263

6364
def contains(self, warning):
6465
"""Check if a similar warning is in this list."""

0 commit comments

Comments
 (0)