QDoc: Improve "Cannot tie this documentation to anything" warning


The warning message and its documentation suggest the only reason
QDoc can't associate a comment with an entity is a missing topic
command or a missing function definition. In practice, the comment
may precede a declaration that QDoc can't see, such as one guarded
by a preprocessor conditional that QDoc doesn't evaluate. This
misleads authors into looking for the wrong problem.

The revised wording covers the full range of causes, helping
authors diagnose the actual issue instead of chasing a missing
definition that may well be present in the source.

Fixes: QTBUG-106220
Change-Id: I810f78d3f6376c91ec2e84e3f4f4a8316705b9c5
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit876c4f0da9cbe81b5c8993884c429c7ae38ee463
parent16d41f9b39ed2ea2b904e320d6481c05df724f65
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeTue, 24 Mar 2026 09:14:59 +0100