qemu/scripts/qapi
Markus Armbruster 97f0249474 qapi: Record 'include' directives in parse tree
The parse tree is a list of expressions.  Except include expressions
currently get replaced by the included file's parse tree.

Instead of throwing away the include expression, keep it with the file
name expanded so you don't have to track the including file's
directory to make sense of it.

A future commit will put this include expression to use.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180211093607.27351-16-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: fix check of expr after assignment]
Signed-off-by: Eric Blake <eblake@redhat.com>
2018-03-02 13:14:09 -06:00
..
__init__.py qapi-gen: New common driver for code and doc generators 2018-03-02 13:14:09 -06:00
commands.py qapi-gen: New common driver for code and doc generators 2018-03-02 13:14:09 -06:00
common.py qapi: Record 'include' directives in parse tree 2018-03-02 13:14:09 -06:00
doc.py qapi-gen: New common driver for code and doc generators 2018-03-02 13:14:09 -06:00
events.py qapi-gen: New common driver for code and doc generators 2018-03-02 13:14:09 -06:00
introspect.py qapi-gen: New common driver for code and doc generators 2018-03-02 13:14:09 -06:00
types.py qapi-gen: New common driver for code and doc generators 2018-03-02 13:14:09 -06:00
visit.py qapi-gen: New common driver for code and doc generators 2018-03-02 13:14:09 -06:00