Markus Armbruster d7bc17c602 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>
2019-09-28 17:17:18 +02:00
..
2019-09-20 14:09:24 -05:00
2019-09-20 14:08:10 -05:00
2019-09-10 08:58:43 +02:00
2019-09-10 08:58:43 +02:00
2019-09-10 08:58:43 +02:00
2019-09-10 08:58:43 +02:00
2018-08-23 18:46:25 +02:00
2017-12-20 22:01:24 +08:00
2018-12-20 10:29:08 +01:00