All of lore.kernel.org
 help / color / mirror / Atom feed
* Coccinelle Challenge Problem 2
@ 2017-02-21 17:44 Gargi Sharma
  2017-02-21 17:54 ` [Outreachy kernel] " Julia Lawall
  0 siblings, 1 reply; 4+ messages in thread
From: Gargi Sharma @ 2017-02-21 17:44 UTC (permalink / raw)
  To: outreachy-kernel

[-- Attachment #1: Type: text/plain, Size: 343 bytes --]

Hi,

Here's my coccinelle script to parentheses around the right hand side of an
assignment.

@@ expression e, e1, e2; @@
e =
-(
        e1 + e2
-)

@@ expression e, e1, e2; @@
e =
-(
        e1 - e2
-)

@@ expression e, e1;
contant c; @@
e =
-(
        e1 << c
-)

@@ expression e, e1;
constant c; @@
e =
-(
        e1 >> c
-)

thanks,
gargi

[-- Attachment #2: Type: text/html, Size: 574 bytes --]

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

end of thread, other threads:[~2017-02-21 20:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-21 17:44 Coccinelle Challenge Problem 2 Gargi Sharma
2017-02-21 17:54 ` [Outreachy kernel] " Julia Lawall
2017-02-21 18:43   ` Gargi Sharma
2017-02-21 20:04     ` 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.