QQmlJSImportVisitor: don't emit alias-cycle warnings on missing aliases
Don't emit alias-cycle warnings on aliases that are not in alias-cycles
but still are invalid. Use a QSet<> to mark resolved or invalid aliases
to ignore them during the emission of the alias-cycle warning.
Amends 769b2ed11153fac9e2c719969ce88db22c38918d that changed the
behavior of resolvedAliases() without mentioning it in its commit
message: before 769b2ed11153fac9e2c719969ce88db22c38918d, doRequeue=true
would replace "Cannot deduce missing type of alias" and "Cannot resolved
alias" warnings with cyclic-alias warnings on all aliases inside an
object with an alias cycle. After
769b2ed11153fac9e2c719969ce88db22c38918d, warnings on the non-cyclic
aliases were emitted again, in addition to the cyclic alias.
This commit cleans this behavior up by emitting the cyclic warnings only
on cycles and the qmlMissingType and qmlUnresolvedAlias on non-cyclic
aliases.
Fixes: QTBUG-141767
Change-Id: I5158228b03d9e25588142cd0da6e287316d116ff
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>