From: mstefani@redhat.com (Michael Stefaniuc)
To: cocci@systeme.lip6.fr
Subject: [Cocci] smpl-spacing Whitespace Issue on Assignments (regression)
Date: Mon, 04 May 2015 10:10:43 +0200 [thread overview]
Message-ID: <55472983.2000209@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1505032357060.2221@localhost6.localdomain6>
On 05/03/2015 11:58 PM, Julia Lawall wrote:
> On Sun, 3 May 2015, Michael Stefaniuc wrote:
>
>> Hello Julia,
>>
>> sorry for the delay, here is the whitespace regression though it
>> affects only --smpl-spacing
>>
>> foo.cocci: @@ expression e1, e2; @@ - e1 = e2 + c = d
>>
>> foo.c: void foo(void) { int a, b; b = a; }
>>
>> spatch --smpl-spacing foo.cocci foo.c gives: - b = a; +
>> c=d;
>
> Just out of curiosity, did it work recently? I don't think I have
> changed
Yes, the last rc worked. Or maybe it was the penultimate rc as I had
massive HW related problems with that machine and I might have missed
an update.
I'm am doing a "validation" run when updating coccinelle with my
monster cocci file that generates cocci file that get run on the Wine
source code.
https://people.redhat.com/mstefani/wine/coccinelle/COM-gen.cocci
The interdiff between the old and new run showed that whitespace issue
as only difference.
> anything recently related to assignments. I will look into it.
Not urgent, I really learned coccinelle while writing that script back
in the days. The line that triggered was not optimal anyway and fixing
that avoids the issue: as the right hand side of the assignment is
invariant I could move it out of the - + code.
thanks
bye
michael
prev parent reply other threads:[~2015-05-04 8:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-03 21:14 [Cocci] smpl-spacing Whitespace Issue on Assignments (regression) Michael Stefaniuc
2015-05-03 21:58 ` Julia Lawall
2015-05-04 8:10 ` Michael Stefaniuc [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=55472983.2000209@redhat.com \
--to=mstefani@redhat.com \
--cc=cocci@systeme.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.