QDoc: Reverse-index concept users in resolveStuff
Concept references collected during parsing tell us which types and
functions are constrained by which concepts, but a reader landing on a
concept's documentation page wants the inverse: which types and
functions use this concept. Computing this at parse time doesn't work
because parse order across translation units is arbitrary — the concept
being referenced may not yet have a documentation node when its user
is parsed.
QDoc now performs a reverse-index pass alongside the existing target
and since-version resolution, after all source has been parsed and
before any generator runs. The pass walks the primary tree, reads the
concept references stored on each constrained declaration, looks each
one up across the documented forest, and registers the constrained
node as a member of the corresponding concept's collection node. The
forest search order finds concept nodes loaded from dependency module
indexes too, so the lookup itself is cross-module-aware. In this
series, generators render concept pages from the primary tree only, so
a "Used by" listing is emitted for concepts documented by the module
currently being generated. Dependency-owned concept nodes can receive
in-memory members during this pass, but their pages are not rendered in
the consuming module's run. Concepts not documented anywhere in the
corpus — such as standard library concepts — are silently skipped.
Task-number: QTBUG-145046
Pick-to: 6.12
Change-Id: Ic4c88181d479b3618c71e80398083b08f0986b74
Reviewed-by: Topi Reinio <topi.reinio@qt.io>