qapi: Improve reporting of redefinition
commit56d2df5e65d873ca0e9841f7bb7676cab759f8da
authorMarkus Armbruster <armbru@redhat.com>
Fri, 27 Sep 2019 13:46:38 +0000 (27 15:46 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Sat, 28 Sep 2019 15:17:48 +0000 (28 17:17 +0200)
tree980b1f5956a2c412f7cd648b9012d303e5ab140e
parentf63326985a23cc1bb6327a003050e6fdb52eb9cd
qapi: Improve reporting of redefinition

Point to the previous definition, unless it's a built-in.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190927134639.4284-26-armbru@redhat.com>
scripts/qapi/common.py
tests/qapi-schema/redefined-command.err
tests/qapi-schema/redefined-event.err
tests/qapi-schema/redefined-type.err