Hello, when adding a "!!" the generated diff will have "! !". Test case and results are attached.
thanks
bye
michaelbool foo(int bar)
{
return bar ? true : false;
}
@@ expression E; @@ + !! E - ? true : false
--- /tmp/notnot.c
+++ /tmp/cocci-output-18828-5323c2-notnot.c
@@ -1,4 +1,4 @@
bool foo(int bar)
{
- return bar ? true : false;
+ return ! !bar;
}
_______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
