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>