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>