QDoc: Build format-agnostic IR in the template generator


The template generator threads a format string into the IR build
stage, selecting format-conditional branches at construction time.
This couples the IR to a specific format and prevents a single
snapshot from serving multiple renderers simultaneously.

Format-conditional markup (\raw and format-specific macro
definitions) is rare in practice, and the affected uses are better
served by format-agnostic semantic commands. The template generator
now skips format-conditional atoms entirely, producing one
format-agnostic IR that feeds any number of output formats without
rebuilding.

Fixes: QTBUG-144387
Change-Id: Ic8fd30403f8a66fb6b7c766dad4912edf443d7f4
Reviewed-by: David Boddie <david.boddie@qt.io>
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit073b49185370976676456a4001ad9b67f525e896
parent4cd5d149fc986fcd303fede2e28da55309895f59
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeMon, 23 Feb 2026 19:40:58 +0100