QDoc: Split concept references into discrete spans


A constrained function's synopsis represents its requires
clause as a single opaque text run in the intermediate
representation. Anything that wants to treat a concept
name as a distinct element — to hyperlink it, to style
it, to mark it up — has to re-parse the run from scratch.
That puts an avoidable duplication of work into every
consumer that needs concept-aware rendering.

Splitting the requires clause into a sequence of discrete
elements gives template consumers a structured
representation of the references it contains, removing the
need to re-parse the text. Existing templates keep the
same visible output until they opt into rendering the new
link spans.

Task-number: QTBUG-145046
Pick-to: 6.12
Change-Id: I595c08a586a9927592c8ef9375bc4dd40715598f
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commita31c2f883c791cc7f207f92e58d822eb2f97480b
parent833374bc7821ab8a0389c97f770b32fb5f4db455
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeFri, 5 Jun 2026 06:03:45 +0000