mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
qapi: Fix detection of doc / expression mismatch
This fixes the errors uncovered by the previous commit. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <1489582656-31133-32-git-send-email-armbru@redhat.com>
This commit is contained in:
parent
2028be8eea
commit
e7823a2adf
12 changed files with 28 additions and 28 deletions
|
@ -0,0 +1 @@
|
|||
tests/qapi-schema/doc-before-include.json:3: Documentation for 'foo' is not followed by the definition
|
|
@ -1 +1 @@
|
|||
0
|
||||
1
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# Doc comment separated from defining expression by non-defining expression
|
||||
# BUG: not rejected
|
||||
|
||||
##
|
||||
# @foo:
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
enum QType ['none', 'qnull', 'qint', 'qstring', 'qdict', 'qlist', 'qfloat', 'qbool']
|
||||
prefix QTYPE
|
||||
object foo
|
||||
object q_empty
|
|
@ -0,0 +1 @@
|
|||
tests/qapi-schema/doc-before-pragma.json:3: Documentation for 'foo' is not followed by the definition
|
|
@ -1 +1 @@
|
|||
0
|
||||
1
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# Doc comment separated from defining expression by non-defining expression
|
||||
# BUG: not rejected
|
||||
|
||||
##
|
||||
# @foo:
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
enum QType ['none', 'qnull', 'qint', 'qstring', 'qdict', 'qlist', 'qfloat', 'qbool']
|
||||
prefix QTYPE
|
||||
object foo
|
||||
object q_empty
|
|
@ -1 +1 @@
|
|||
tests/qapi-schema/doc-missing-expr.json:3: Documention for 'bar' is not followed by the definition
|
||||
tests/qapi-schema/doc-missing-expr.json:3: Documentation for 'bar' is not followed by the definition
|
||||
|
|
|
@ -1 +1 @@
|
|||
tests/qapi-schema/doc-no-symbol.json:4: Definition of 'foo' follows documentation for 'None'
|
||||
tests/qapi-schema/doc-no-symbol.json:3: Expression documentation required
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# Documentation for expression lacks symbol
|
||||
# BUG: Error message claims it has symbol 'None'
|
||||
|
||||
##
|
||||
# foo:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue