OSDN Git Service

qapi: Prepare for rejecting underscore in command and member names
authorMarkus Armbruster <armbru@redhat.com>
Tue, 23 Mar 2021 09:40:19 +0000 (10:40 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 23 Mar 2021 21:31:05 +0000 (22:31 +0100)
commit9af4b6b9e80daeab2ce47664ff422b5e421814de
tree79a697437e154779da2008eac0299bf90e5d32e5
parent6e2e12a70c0b7f7fe71a7938b9c49bdaa608ce58
qapi: Prepare for rejecting underscore in command and member names

Command names and member names within a type should be all lower case
with words separated by a hyphen.  We also accept underscore.  Rework
check_name_lower() to optionally reject underscores, but don't use
that option, yet.

Update expected test output for the changed error message.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210323094025.3569441-23-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
scripts/qapi/expr.py
tests/qapi-schema/args-member-case.err
tests/qapi-schema/enum-member-case.err
tests/qapi-schema/union-branch-case.err