QDoc: Autolink concept references in DocBook


The DocBook generator emits template-declaration content
as plain text. Concept references in requires clauses,
direct concept-on-template-parameter forms, and class
subtitles render as inert text, while the HTML output
has long produced clickable anchors for the same
references. Readers consuming DocBook output have no way
to follow a concept reference to its documentation.

The DocBook synopsis pipeline emits a link element for
every concept reference. The cross-module forest walk
reuses the same dependency-aware lookup the HTML side
introduced earlier, so cross-module concept references
resolve through the same path. The constrained-auto
autolink continues through the type-resolution path
unchanged. Switching from string concatenation to
element-by-element emission also drops a stray trailing
space before the closing angle bracket in nested
template-template parameters, captured in the regenerated
expected output for the existing templated-callables
fixtures.

Task-number: QTBUG-145046
Pick-to: 6.12
Change-Id: If2fe7aad8b7fd17f77e21b5eb45922311b42a0b8
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commita028ad5d9954bdc4e886ded06d05792595efafe0
parent5087d098d34e0fc4ab67681d4fad566fe8b6bedf
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeFri, 5 Jun 2026 07:53:50 +0000