All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] Embedding Meta-variables in added Comments using semantic patchesز
@ 2018-08-28  7:36 Moustafa Mahmoud
  2018-08-28 10:53 ` Julia Lawall
  0 siblings, 1 reply; 4+ messages in thread
From: Moustafa Mahmoud @ 2018-08-28  7:36 UTC (permalink / raw)
  To: cocci

this semantic patch doesn't produce the required behavioir

@annotate_if_conditions@
expression ex;
@@

<+...
+ /* ex */
if(ex){...}
...+>


it produces the following

     int x =5;
     int y =6;
     int m =funct();
+    /* ex */   // the required behavoir I need is  /* x */
     if(x)
     {
+       /* ex */
        if(y)
        {
            return 1;

Regards,
Moustafa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://systeme.lip6.fr/pipermail/cocci/attachments/20180828/47bf471a/attachment.html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-29  2:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-28  7:36 [Cocci] Embedding Meta-variables in added Comments using semantic patchesز Moustafa Mahmoud
2018-08-28 10:53 ` Julia Lawall
2018-08-29  1:52   ` Moustafa Mahmoud
2018-08-29  2:52     ` Julia Lawall

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.