QDoc: Add format-conditional traversal with brief exclusion


Documentation source files use FormatIf/FormatElse/FormatEndif atoms
to emit format-specific content. The content builder needs to evaluate
these conditions against a target format so that only the matching
branch reaches the content model.

The traversal loop is restructured into boundary-walking helpers that
detect format-conditional boundaries, evaluate them against the
configured format, and process or skip the appropriate branch.
Case-insensitive matching follows QDoc convention. Stray boundary
atoms at the top level are silently ignored.

Brief content is handled by the same dispatch entry point: atoms
between BriefLeft and BriefRight are suppressed, since brief text
is extracted separately and rendered independently of the body.

Task-number: QTBUG-144240
Change-Id: I7889cfa1a8b36772e26995970a45f2f6c66105c8
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit4d0f718b2c036fd544d5b5aecbe15341d7cf2718
parent409cd271b4bf7ead8c27d3367af4d2d9c31142a9
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeFri, 20 Feb 2026 13:54:15 +0100