* [Cocci] smpl-spacing Whitespace Issue on Assignments (regression)
@ 2015-05-03 21:14 Michael Stefaniuc
2015-05-03 21:58 ` Julia Lawall
0 siblings, 1 reply; 3+ messages in thread
From: Michael Stefaniuc @ 2015-05-03 21:14 UTC (permalink / raw)
To: cocci
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;
bye
michael
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Cocci] smpl-spacing Whitespace Issue on Assignments (regression)
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
0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2015-05-03 21:58 UTC (permalink / raw)
To: cocci
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
anything recently related to assignments. I will look into it.
Thanks for the report.
julia
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Cocci] smpl-spacing Whitespace Issue on Assignments (regression)
2015-05-03 21:58 ` Julia Lawall
@ 2015-05-04 8:10 ` Michael Stefaniuc
0 siblings, 0 replies; 3+ messages in thread
From: Michael Stefaniuc @ 2015-05-04 8:10 UTC (permalink / raw)
To: cocci
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-04 8:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.