From: Peter Maydell <peter.maydell@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: QEMU Trivial <qemu-trivial@nongnu.org>,
QEMU Developers <qemu-devel@nongnu.org>,
Markus Armbruster <armbru@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] add macro file for coccinelle
Date: Mon, 7 Sep 2015 11:17:02 +0100 [thread overview]
Message-ID: <CAFEAcA_ZCV0dmNEXPthSLSRQWoKG-sc5_vQEFrBxczEhYj8s8A@mail.gmail.com> (raw)
In-Reply-To: <55ED5F65.3060809@redhat.com>
On 7 September 2015 at 10:56, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
>
> On 07/09/2015 11:22, Peter Maydell wrote:
>> On 7 September 2015 at 08:51, Paolo Bonzini <pbonzini@redhat.com> wrote:
>>> Coccinelle chokes on some idioms from compiler.h and queue.h.
>>> Extract those in a macro file, to be used with "--macro-file
>>> scripts/cocci-macro-file.h".
>>
>> Can we put the "how to use this" instructions in the file
>> itself as well as in the commit message, please?
>
> Like this?
>
> /* Coccinelle only does limited parsing of headers, and chokes on some idioms
> * defined in compiler.h and queue.h. Macros that Coccinelle must know about
> * in order to parse .c files must be in a separate macro file---which is
> * exactly what you're staring at now.
> *
> * To use this file, add the "--macro-file scripts/cocci-macro-file.h" to the
> * Coccinelle command line.
> */
Yeah, sounds about right.
thanks
-- PMM
prev parent reply other threads:[~2015-09-07 10:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-07 7:51 [Qemu-devel] [PATCH] add macro file for coccinelle Paolo Bonzini
2015-09-07 9:22 ` Peter Maydell
2015-09-07 9:56 ` Paolo Bonzini
2015-09-07 10:17 ` Peter Maydell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFEAcA_ZCV0dmNEXPthSLSRQWoKG-sc5_vQEFrBxczEhYj8s8A@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=armbru@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).