qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v6 12/16] qapi: Consistent generated code: prefe


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH v6 12/16] qapi: Consistent generated code: prefer common labels
Date: Tue, 29 Sep 2015 15:56:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Eric Blake <address@hidden> writes:

> We had some pointless differences in the generated code for visit,
> command marshalling, and events; unifying them makes it easier for
> future patches to consolidate to common helper functions.
>
> This is patch 3/4, focusing on naming the goto labels 'out' (not
> 'clean') and 'out_obj' (not 'out_end').  Additionally, the generator
> was inconsistent on whether labels had a leading space; prefer the
> emacs style of including the space, so that only function names and
> comments occur in column 1 of the generated file [HACKING gives no
> preference, and both styles occur elsewhere in qemu.git].

Your Emacs prefers this?  Mine doesn't.

If I read CC Mode correctly, only style "gnu" does this.  I use
"stroustrup" for QEMU, because it's very close.  It doesn't do this.

As far as I can see, the only label we generate indented before this
patch is qapi-event.py's clean.

When in doubt, avoid the churn: we rename that one anyway, so let's drop
the space there, and leave the others alone.

> No change in semantics to the generated code.
>
> Signed-off-by: Eric Blake <address@hidden>
>
> ---
> v6: split 9/46 into four patches, update docs where they are affected,
> pick consistent spacing of label
>
> Signed-off-by: Eric Blake <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]