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>