]> git.proxmox.com Git - mirror_qemu.git/commit
qapi: Have each QAPI schema declare its name rule violations
authorMarkus Armbruster <armbru@redhat.com>
Wed, 15 Mar 2017 12:56:55 +0000 (13:56 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 16 Mar 2017 06:13:02 +0000 (07:13 +0100)
commit2cfbae3c423ecd13a7722ac7a7dca7ec4168e2ff
tree14fcbec48e3550368f0251b93aa95a0e62ec6797
parent1554a8fae984cad4704fb94a8cef3c9b42ef6185
qapi: Have each QAPI schema declare its name rule violations

qapi.py has a hardcoded white-list of type names that may violate the
rule on use of upper and lower case.  Add a new pragma directive
'name-case-whitelist', and use it to replace the hard-coded
white-list.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1489582656-31133-7-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
docs/qapi-code-gen.txt
qapi-schema.json
scripts/qapi.py
tests/Makefile.include
tests/qapi-schema/enum-member-case.err
tests/qapi-schema/enum-member-case.json
tests/qapi-schema/pragma-name-case-whitelist-crap.err [new file with mode: 0644]
tests/qapi-schema/pragma-name-case-whitelist-crap.exit [new file with mode: 0644]
tests/qapi-schema/pragma-name-case-whitelist-crap.json [new file with mode: 0644]
tests/qapi-schema/pragma-name-case-whitelist-crap.out [new file with mode: 0644]