Re: [Cocci] Adding a newline after a variable definition

2021-06-23 Thread Fuad Tabba
That works, thank you! Cheers, /fuad On Wed, Jun 23, 2021 at 9:54 AM Julia Lawall wrote: > > > > On Wed, 23 Jun 2021, Fuad Tabba wrote: > > > Hi, > > > > I have a semantic patch that inserts a new variable definition into a > > function. I would like it if that variable definition is the only

[Cocci] Adding a newline after a variable definition

2021-06-23 Thread Fuad Tabba
Hi, I have a semantic patch that inserts a new variable definition into a function. I would like it if that variable definition is the only one in the function, then it should add a new line to separate the definition from following statements (Linux code formatting style). I thought that doing

Re: [Cocci] Adding a newline after a variable definition

2021-06-23 Thread Julia Lawall
On Wed, 23 Jun 2021, Fuad Tabba wrote: > Hi, > > I have a semantic patch that inserts a new variable definition into a > function. I would like it if that variable definition is the only one > in the function, then it should add a new line to separate the > definition from following statements