cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
From: "Christoph Böhmwalder" <christoph.boehmwalder@linbit.com>
To: Julia Lawall <julia.lawall@lip6.fr>
Cc: cocci@systeme.lip6.fr
Subject: Re: [Cocci] spatch inserting the following rule into the patch
Date: Mon, 22 Jul 2019 10:04:58 +0200	[thread overview]
Message-ID: <90121c10-8c2e-1bde-353e-a490d40c187a@linbit.com> (raw)
In-Reply-To: <alpine.DEB.2.21.1907201832170.2558@hadrien>

On 20.07.19 18:39, Julia Lawall wrote:
> What version of Coccinelle of do you have?  I get the correct output on
> this example:
> 
> diff =
> --- attr.c
> +++ /tmp/cocci-output-153931-8de7ba-attr.c
> @@ -1,4 +1,4 @@
>  int main()
>  {
> -        COCCI_REPLACE_THIS();
> +        int x__attribute__((some_attr));
>  }
> 
> julia
> 

I was running 1.0.4.deb-3build4, which is just what you get when you run
`apt install coccinelle` on Ubuntu bionic.
I just built the latest HEAD from GitHub and the bug indeed seems fixed.
Maybe a version bump of the Ubuntu repos would be appropriate?

Thanks,
Christoph

--
Christoph Böhmwalder
LINBIT | Keeping the Digital World Running
DRBD HA —  Disaster Recovery — Software defined Storage
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

  reply	other threads:[~2019-07-22  8:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-19  7:01 [Cocci] spatch inserting the following rule into the patch Christoph Böhmwalder
2019-07-20 16:39 ` Julia Lawall
2019-07-22  8:04   ` Christoph Böhmwalder [this message]
2019-07-22 14:54     ` Himanshu Jha

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=90121c10-8c2e-1bde-353e-a490d40c187a@linbit.com \
    --to=christoph.boehmwalder@linbit.com \
    --cc=cocci@systeme.lip6.fr \
    --cc=julia.lawall@lip6.fr \
    /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).