[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 2/2] qapi: add location comment for generated
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v2 2/2] qapi: add location comment for generated types |
Date: |
Thu, 1 Jun 2017 09:15:07 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 |
On 06/01/2017 07:41 AM, Marc-André Lureau wrote:
> This may help to find where the origin of the type was declared in the
> json (when greping isn't easy enough).
>
> Generates the following kind of C comment before types:
>
> /* /home/elmarco/src/qemu/qapi/introspect.json:94 */
> typedef struct SchemaInfo SchemaInfo;
Makes the generated code larger, but for a good cause. No real impact
to the binary size (well, debug information may be slightly larger based
on line numbers getting higher, but that's in the noise).
>
> Signed-off-by: Marc-André Lureau <address@hidden>
> ---
> scripts/qapi.py | 12 +++++++++---
> scripts/qapi-event.py | 2 +-
> scripts/qapi-types.py | 18 +++++++++---------
> 3 files changed, 19 insertions(+), 13 deletions(-)
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature