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>
commit436ff38d821de53ec29064a7e64356d5aa70dff7
parent2c67abfefaaeb32cf743e4b658572568ebab2033
authorTopi Reinio <topi.reinio@qt.io>
committerTopi Reinio <topi.reinio@qt.io>
commit timeThu, 9 Jul 2026 13:10:57 +0000