QDoc: Extract concept references from constrained declarations
The requires-clause extraction captures the stringified form of a
constraint expression but treats the concept names inside it as opaque
text. Building a reverse index from "concept C" back to "types and
functions whose constraints reference C" out of that string would
require either re-parsing on the QDoc side or brittle text matching that
misses constrained-auto parameters and the direct template-parameter
form entirely.
QDoc now collects the fully-qualified names of concepts referenced in
the supported declaration constraint forms during the same Clang AST
traversal that already extracts the requires-clause text. The extraction
covers explicit requires clauses, constrained-auto parameters, and the
direct concept-on-template-parameter syntax. Each form's referenced
concepts land on a dedicated list alongside the requires-clause text,
sorted and deduplicated at collection time so downstream consumers can
treat the list as a set with a stable lexicographic order.
Constrained non-type template parameters such as
`template <Integral auto N>` are left for a follow-up. The AST shape
differs from the type-template-parameter case that the current
extraction handles.
Task-number: QTBUG-145046
Task-number: QTBUG-143248
Task-number: QTBUG-143274
Pick-to: 6.12
Change-Id: Icd44c2425a97975e7f6efcb7bcc88f8a78d24578
Reviewed-by: Topi Reinio <topi.reinio@qt.io>