QDoc: PureDocParser: Don't warn about 'hostile characters', only report
PureDocParser is used for parsing also C++ source files if .qdocconf is
configured to contain no C++ documentation comments. Using PureDocParser
instead of ClangCodeParser is much faster for parsing e.g. QML
documentation comments in .cpp files.
In Qt, CMake autogenerates C++ files for QML plugins, and these can end
up being parsed by QDoc. They contain generator expressions that
PureDocParser doesn't recognize, resulting in 'Hostile character'
warnings.
These warnings often produce a lot of noise in the output and the practical
outcome for parsing is simply skipping the invalid character(s). A more
serious consequence is potentially failing documentation testing in CI
because of these warnings.
Turn the warning into a report to reduce the noise, while still providing
a hint for the user of a potential issue. If a hostile character
prevents documentation comments from being parsed correctly, they will
be followed by other warnings.
Pick-to: 6.12
Task-number: QTBUG-147135
Change-Id: I39207dcbf5e15bd9c0f8e37faf13dd03572bce4e
Reviewed-by: David Boddie <david.boddie@qt.io>