QDoc: Define C++ reference page IR types
Introduce value-type structs for C++ reference page metadata at the
extraction boundary and IR layer: CppReferenceData and
CppReferenceInfo.
These types model metadata used by C++ reference pages such as header
includes, build-system snippets, inheritance information, thread safety,
comparison categories, template declaration spans, and related links.
This commit also adds JSON serialization for CppReferenceInfo and
plumbs optional cppReferenceInfo storage into IR::Document. Catch2
scenarios verify JSON serialization for all fields.
This patch defines the types and serialization only. Population from
Node data, builder-side assembly, and template integration follow in
subsequent commits in the series.
Task-number: QTBUG-145769
Change-Id: I8b71b456aed20e4678679854d699bff7e4323a7e
Reviewed-by: Topi Reinio <topi.reinio@qt.io>