wow, I can't type.
Let me say it more sensibly, even if wrong :-)
[[[ I know this is wrong, it's kind of "what I want it to do" ]]]
@@
expression E1, E2;
statement S;
function f;
@@
f(...){<...
-if ((E1) && (E2))
+if (E1 && E2)
S
...> }
Is that any more sensible?
thanks
ron
On Mon, Oct 12, 2015 at 2:43 PM Peter Senna Tschudin <[email protected]>
wrote:
> On Mon, Oct 12, 2015 at 11:38 PM, ron minnich <[email protected]> wrote:
> > I've had someone request something and I want to show them how cool
> > coccinnelle is. If only I were smart enough!
> >
> > There are lots of things like this:
> > if ((a == b) && (c != e))
> >
> > which I'd like to turn in to
> > if (a == b && c == d) ...
> Where does d comes from?
>
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci