[PATCH] Use postfix increment

Peter Krempa pkrempa at redhat.com
Tue Jul 13 09:11:23 UTC 2021


On Tue, Jul 13, 2021 at 08:44:06 +0200, Michal Privoznik wrote:
> We document that our coding style is to use postfix increment in
> for() loops rather than prefix. This change was generated by the
> following sed script:
> 
>   for i in $(git grep -l "for (.*; ++.*)"); do \
>     sed -i 's/\(for (.*; \)++\(.*\))/\1\2++)/' $i; \
>   done
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---

NACK this is mostly pointless churn.




More information about the libvir-list mailing list