On 2025-07-18 14:49, Linus Torvalds wrote: > > Side note: I think some coccinelle (or sed) script that replaces that > older form of > > typeof(x) Y = (typeof(x))(Z); > > or > > typeof(Z) Y = Z; > > > with just > > auto Y = Z; > > is also worthwhile at some point. > > We have more of those, because that's the really traditional gcc way > to do things that predates __auto_type. >
Agreed. And I think that this, indeed is a job more for Coccinelle than for sed, because the patterns can be rather complex and we don't want false positives. -hpa