Re: [PATCH v3 01/29] bulk: Access existing variables initialized to >F when available

2024-03-08 Thread Anthony PERARD
On Mon, Jan 29, 2024 at 05:44:43PM +0100, Philippe Mathieu-Daudé wrote: > When a variable is initialized to >field, use it > in place. Rationale: while this makes the code more concise, > this also helps static analyzers. > > Mechanical change using the following Coccinelle spatch script: > >

Re: [PATCH v3 01/29] bulk: Access existing variables initialized to >F when available

2024-01-30 Thread Zhao Liu
On Mon, Jan 29, 2024 at 05:44:43PM +0100, Philippe Mathieu-Daudé wrote: > Date: Mon, 29 Jan 2024 17:44:43 +0100 > From: Philippe Mathieu-Daudé > Subject: [PATCH v3 01/29] bulk: Access existing variables initialized to > >F when available > X-Mailer: git-send-email 2.41.0 &g

Re: [PATCH v3 01/29] bulk: Access existing variables initialized to >F when available

2024-01-29 Thread BALATON Zoltan
On Mon, 29 Jan 2024, Philippe Mathieu-Daudé wrote: When a variable is initialized to >field, use it in place. Rationale: while this makes the code more concise, this also helps static analyzers. Mechanical change using the following Coccinelle spatch script: @@ type S, F; identifier s, m, v;

Re: [PATCH v3 01/29] bulk: Access existing variables initialized to >F when available

2024-01-29 Thread Fabiano Rosas
Philippe Mathieu-Daudé writes: > When a variable is initialized to >field, use it > in place. Rationale: while this makes the code more concise, > this also helps static analyzers. > > Mechanical change using the following Coccinelle spatch script: > > @@ > type S, F; > identifier s, m, v; >

[PATCH v3 01/29] bulk: Access existing variables initialized to >F when available

2024-01-29 Thread Philippe Mathieu-Daudé
When a variable is initialized to >field, use it in place. Rationale: while this makes the code more concise, this also helps static analyzers. Mechanical change using the following Coccinelle spatch script: @@ type S, F; identifier s, m, v; @@ S *s; ... F *v = >m;