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:
Markus Armbruster 2017-03-15 13:57:20 +01:00
parent 2028be8eea
commit e7823a2adf
12 changed files with 28 additions and 28 deletions

View file

@ -0,0 +1 @@
tests/qapi-schema/doc-before-include.json:3: Documentation for 'foo' is not followed by the definition

View file

@ -1 +1 @@
0
1

View file

@ -1,5 +1,4 @@
# Doc comment separated from defining expression by non-defining expression
# BUG: not rejected
##
# @foo:

View file

@ -1,4 +0,0 @@
enum QType ['none', 'qnull', 'qint', 'qstring', 'qdict', 'qlist', 'qfloat', 'qbool']
prefix QTYPE
object foo
object q_empty

View file

@ -0,0 +1 @@
tests/qapi-schema/doc-before-pragma.json:3: Documentation for 'foo' is not followed by the definition

View file

@ -1 +1 @@
0
1

View file

@ -1,5 +1,4 @@
# Doc comment separated from defining expression by non-defining expression
# BUG: not rejected
##
# @foo:

View file

@ -1,4 +0,0 @@
enum QType ['none', 'qnull', 'qint', 'qstring', 'qdict', 'qlist', 'qfloat', 'qbool']
prefix QTYPE
object foo
object q_empty

View file

@ -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

View file

@ -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

View file

@ -1,5 +1,4 @@
# Documentation for expression lacks symbol
# BUG: Error message claims it has symbol 'None'
##
# foo: