summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/reserved-type-kind.err
diff options
context:
space:
mode:
authorMarkus Armbruster2019-09-27 15:46:22 +0200
committerMarkus Armbruster2019-09-28 17:17:18 +0200
commitd7bc17c602f128bb358376e6976b3b5dee1ad732 (patch)
treedcb866d6555d49919c90479e62de679e36c3b966 /tests/qapi-schema/reserved-type-kind.err
parentqapi: Reorder check_FOO() parameters for consistency (diff)
downloadqemu-d7bc17c602f128bb358376e6976b3b5dee1ad732.tar.gz
qemu-d7bc17c602f128bb358376e6976b3b5dee1ad732.tar.xz
qemu-d7bc17c602f128bb358376e6976b3b5dee1ad732.zip
qapi: Improve reporting of invalid name errors
Split check_name() into check_name_is_str() and check_name_str(), keep check_name() as a wrapper. Move add_name()'s call into its caller check_exprs(), and inline. This permits delaying check_name_str() there, so its error message gains an "in definition" line. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20190927134639.4284-10-armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/reserved-type-kind.err')
-rw-r--r--tests/qapi-schema/reserved-type-kind.err1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qapi-schema/reserved-type-kind.err b/tests/qapi-schema/reserved-type-kind.err
index 0a38efaad8..8d21479000 100644
--- a/tests/qapi-schema/reserved-type-kind.err
+++ b/tests/qapi-schema/reserved-type-kind.err
@@ -1 +1,2 @@
+tests/qapi-schema/reserved-type-kind.json: In enum 'UnionKind':
tests/qapi-schema/reserved-type-kind.json:2: enum 'UnionKind' should not end in 'Kind'