QDoc: Resolve indexes paths relative to qdocconf


Path-valued QDoc configuration variables (e.g. headerdirs, sourcedirs,
etc) resolve relative paths against the qdocconfs own directory. If the
qdoncconf contains `headerdirs = ./src`, the header search path is
rooted at the qdocconf location, not from whereever qdoc happened to be
invoked from.

The indexes configuration is the lone exception to this pattern. A
natural-looking `indexes += ./neighbor.index` resolves against
qdoc's invocation directory (typically the build tree). This causes the
file to be reported as missing even when it sits next to the qdocconf
that that referenced it. The asymmetry is invisible to authors.

Routing `CONFIG_INDEXES` through `getCanonicalPathList()` with the
`Validate` flag aligns the indexes config with the rest of the
configuration surface. Relative paths now resolve against the qdocconf's
parse-time directory, and missing files emit a properly-located warning
at the configuration source rather than an empty-location diagnostic. No
upstream Qt qdocconf relies on the previous silently-broken
relative-path semantics, so the behavior change is benign in practice.

Fixes: QTBUG-146767
Change-Id: Iea9be58ac40b5091d975c4c67fb8bfad73ae8a5b
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit67f26572c6c6b76b1917a6a6a73a20f8bb1ccd64
parentcb7efb105daaaa95f04498bd97ee0bd9cd90d4ce
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeWed, 20 May 2026 14:27:10 +0000