QDoc: Introduce content model infrastructure
Documentation generators need a structured representation of body
content that's decoupled from QDoc's internal atom chain. Walking
atoms directly means each generator reimplements the same structural
patterns, leading to divergent behavior and repeated bug fixes.
A builder class now converts atom chains into block/inline content
trees. Blocks such as paragraphs and sections contain inline elements
such as text and code spans. The tree-building infrastructure uses
index-based paths for safe hierarchical traversal, avoiding pointer
invalidation during list growth. This commit establishes the
machinery; full atom dispatch follows in a subsequent commit.
Task-number: QTBUG-144240
Change-Id: I47b7f5421ec6abd5bb41bae81eff2db57d49589e
Reviewed-by: Topi Reinio <topi.reinio@qt.io>