QDoc: Always parse \fn commands
Previously, QDoc omitted parsing an \fn command that was marked as
\internal, unless internal documentation is meant to be processed as per
inclusion policy.
This was a problem for detecting and warning about undocumented members:
It was impossible to suppress a warning about an undocumented function
by documenting it as \internal, because that internal comment block was
ignored entirely.
Always try to match an \fn signature with a header declaration, and move
the policy check to happen on match failures instead.
Pick-to: 6.12
Fixes: QTBUG-147504
Change-Id: I1822be14d4a8b3dc992fa3ae1ad518a8aafb1f1c
Reviewed-by: Paul Wicking <paul.wicking@qt.io>