Re: [Outreachy kernel] [PATCH v2] Staging: pi433: Fix the position of brace after if

2017-10-07 Thread Julia Lawall
On Sun, 8 Oct 2017, Srishti Sharma wrote: > Fix the position of the brace after if when it is on the next line. > Done using the following semantic patch by coccinelle. > > @r1@ > position p1, p2; > @@ > > if(...)@p1 {@p2 > ... > } > > @script: python r2@ > p1 << r1.p1; > p2 << r1.p2; > @@ > >

[PATCH v2] Staging: pi433: Fix the position of brace after if

2017-10-07 Thread Srishti Sharma
Fix the position of the brace after if when it is on the next line. Done using the following semantic patch by coccinelle. @r1@ position p1, p2; @@ if(...)@p1 {@p2 ... } @script: python r2@ p1 << r1.p1; p2 << r1.p2; @@ l1 = int (p1[0].line) l2 = int (p2[0].line) c1 = int (p1[0].column_end) c2