Re: [Cocci] coccinelle: trivial linux code style reformatting

2014-04-01 Thread Peter Senna Tschudin
I changed the first rule to: @@ identifier func; expression S,E; @@ void func(...) { ... - if (E) return S; + if (E) {S; return;} ... } and it seem to work now, can you confirm it does the expected? I'm using rc20... On Tue, Apr 1, 2014 at 7:42 PM, Joe Perches j...@perches.com wrote: Hello.

Re: [Cocci] coccinelle: trivial linux code style reformatting

2014-04-01 Thread Joe Perches
On Tue, 2014-04-01 at 20:29 +0200, Peter Senna Tschudin wrote: I changed the first rule to: @@ identifier func; expression S,E; @@ void func(...) { ... - if (E) return S; + if (E) {S; return;} Thanks Peter, that makes more sense than what I wrote. cheers, Joe

Re: [Cocci] coccinelle: trivial linux code style reformatting

2014-04-01 Thread Joe Perches
On Wed, 2014-04-02 at 07:53 +0200, Julia Lawall wrote: On Tue, 1 Apr 2014, Joe Perches wrote: On Tue, 2014-04-01 at 20:29 +0200, Peter Senna Tschudin wrote: I changed the first rule to: @@ identifier func; expression S,E; @@ void func(...) { ... - if (E) return S;