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>
commit6e4a4abc85cdc40b2ca0ef8a84d669d1627da9d0
parentb0b7a37813aa2c4bde4d45c0b33b796d767eef22
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeTue, 14 Apr 2026 17:45:31 +0000