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

2017-10-07 Thread Julia Lawall
On Sat, 7 Oct 2017, Srishti Sharma wrote: > Fix the position of the brace after if when it is on the next line > or when there is no space between them. Done using the following > semantic patch by coccinelle. As far as I can see, in practice, you only move up { from the line below. There is

[PATCH] 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 or when there is no space between them. Done using the following semantic patch by coccinelle. @r1@ position p1, p2; identifier x,f; expression e; @@ ( x=e; | f(...) ) if(...)@p1 {@p2 ... } @script: python r2@ p1 << r1.p1; p2