[Cocci] iterator and single line statement
Corentin Chary
corentin.chary at gmail.com
Mon Apr 20 16:23:56 CEST 2009
> Actually, it's more of a feature...
>
> It doesn't realize that the new code is a single-line statement, and it
> sees the for loop beforehand, so it adds the { } around the iterator.
>
> I will look into whether it can be made smarter in this case, but in the
> short term, if there are not too many of these cases, perhaps you can just
> delete the braces by hand?
Yep I can.
Thanks =)
--
Corentin Chary
http://xf.iksaif.net
More information about the Cocci
mailing list