![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Converts Atom chains to QList<IR::ContentBlock> trees. More...
#include <contentbuilder.h>
Public Member Functions | |
| QList< ContentBlock > | build (const Atom *firstAtom) |
| Walks the atom chain starting at firstAtom and returns a list of ContentBlock trees representing the structured documentation body. | |
Converts Atom chains to QList<IR::ContentBlock> trees.
ContentBuilder walks a linked list of Atom nodes (QDoc's internal documentation representation) and produces a structured tree of ContentBlock and InlineContent values suitable for template rendering.
Handled atom types: \list
Format-conditional atoms (FormatIf, FormatElse, FormatEndif) are skipped unconditionally. The template generator builds a format-agnostic IR that serves all output formats from a single build pass.
ContentBuilder depends only on Atom (for reading the chain) and IR types (for producing output).
Definition at line 19 of file contentbuilder.h.
| QList< ContentBlock > IR::ContentBuilder::build | ( | const Atom * | firstAtom | ) |
Walks the atom chain starting at firstAtom and returns a list of ContentBlock trees representing the structured documentation body.
Returns an empty list if firstAtom is \nullptr.
The builder is reset before processing, so a single ContentBuilder instance can be reused for multiple build() calls.
Definition at line 99 of file contentbuilder.cpp.