diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-09-27 15:46:20 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-09-28 17:17:18 +0200 |
commit | 481a6bd15c4fb99429c3337584c66b40384cb09c (patch) | |
tree | 8c8a90d63b63ac65eb526cefb3b75e4c115f63b5 /tests/qapi-schema/struct-base-clash-deep.err | |
parent | 2ab218aad6e2ddf4e95a7d583492ad7142927ca5 (diff) | |
download | qemu-481a6bd15c4fb99429c3337584c66b40384cb09c.zip qemu-481a6bd15c4fb99429c3337584c66b40384cb09c.tar.gz qemu-481a6bd15c4fb99429c3337584c66b40384cb09c.tar.bz2 |
qapi: Improve reporting of member name clashes
We report name clashes like this:
struct-base-clash.json: In struct 'Sub':
struct-base-clash.json:5: 'name' (member of Sub) collides with 'name' (member of Base)
The "(member of Sub)" is redundant with "In struct 'Sub'". Comes from
QAPISchemaMember.describe(). Pass info to it, so it can detect the
redundancy and avoid it. Result:
struct-base-clash.json: In struct 'Sub':
struct-base-clash.json:5: member 'name' collides with member 'name' of type 'Base'
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190927134639.4284-8-armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/struct-base-clash-deep.err')
-rw-r--r-- | tests/qapi-schema/struct-base-clash-deep.err | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qapi-schema/struct-base-clash-deep.err b/tests/qapi-schema/struct-base-clash-deep.err index 53e9bb1..2b12b3c 100644 --- a/tests/qapi-schema/struct-base-clash-deep.err +++ b/tests/qapi-schema/struct-base-clash-deep.err @@ -1,2 +1,2 @@ tests/qapi-schema/struct-base-clash-deep.json: In struct 'Sub': -tests/qapi-schema/struct-base-clash-deep.json:10: 'name' (member of Sub) collides with 'name' (member of Base) +tests/qapi-schema/struct-base-clash-deep.json:10: member 'name' collides with member 'name' of type 'Base' |