[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v2 2/6] qapi: Replace qobject_to_X(o) by qobject
From: |
Alberto Garcia |
Subject: |
Re: [Qemu-block] [PATCH v2 2/6] qapi: Replace qobject_to_X(o) by qobject_to(o, X) |
Date: |
Wed, 31 Jan 2018 17:05:18 +0100 |
User-agent: |
Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) |
On Sat 20 Jan 2018 04:44:08 PM CET, Max Reitz wrote:
> This patch was generated using the following Coccinelle script:
>
> @@
> expression Obj;
> @@
> (
> - qobject_to_qnum(Obj)
> + qobject_to(Obj, QNum)
> |
> - qobject_to_qstring(Obj)
> + qobject_to(Obj, QString)
> |
> - qobject_to_qdict(Obj)
> + qobject_to(Obj, QDict)
> |
> - qobject_to_qlist(Obj)
> + qobject_to(Obj, QList)
> |
> - qobject_to_qbool(Obj)
> + qobject_to(Obj, QBool)
> )
>
> and a bit of manual fix-up for overly long lines and three places in
> tests/check-qjson.c that Coccinelle did not find.
>
> Signed-off-by: Max Reitz <address@hidden>
Reviewed-by: Alberto Garcia <address@hidden>
Berto
- [Qemu-block] [PATCH v2 0/6] block: Handle null backing link, Max Reitz, 2018/01/20
- [Qemu-block] [PATCH v2 1/6] qapi: Add qobject_to(), Max Reitz, 2018/01/20
- [Qemu-block] [PATCH v2 3/6] qapi: Remove qobject_to_X() functions, Max Reitz, 2018/01/20
- [Qemu-block] [PATCH v2 4/6] qapi: Make more of qobject_to(), Max Reitz, 2018/01/20
- [Qemu-block] [PATCH v2 2/6] qapi: Replace qobject_to_X(o) by qobject_to(o, X), Max Reitz, 2018/01/20
- [Qemu-block] [PATCH v2 5/6] block: Handle null backing link, Max Reitz, 2018/01/20
- [Qemu-block] [PATCH v2 6/6] block: Deprecate "backing": "", Max Reitz, 2018/01/20