QDoc: Add a non-creating cross-tree concept lookup
Resolving a concept reference to its documentation page means searching
the module forest for a concept registered under a given name. The
collection accessors that already exist fall into two camps: the
find/add helpers create a placeholder collection on a miss, while the
getCollectionNode() family reports only what is actually present.
A name-to-node concept lookup belongs in the second camp. A miss must
stay a miss. A reference to an undocumented concept, or to one owned by
a dependency module, must not fabricate an empty placeholder in the
consumer's primary tree: such a placeholder would shadow a
dependency-module concept with an empty primary-tree node. Later link
generation would then emit a dangling local link, and a phantom concept
would be serialized into the index.
QDoc now exposes a non-creating, forest-wide concept lookup, preparing
the synopsis-autolinking work that follows.
Task-number: QTBUG-145046
Pick-to: 6.12
Change-Id: I0f8cfc2531576115955913b0c4f650431d2f74ff
Reviewed-by: Topi Reinio <topi.reinio@qt.io>