[FFmpeg-devel] [PATCH] doc/developper: always use braces for statements

Nicolas George george at nsup.org
Tue Aug 6 19:33:00 EEST 2019


Nicolas Gaullier (12019-08-06):
> ---
>  doc/developer.texi | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/doc/developer.texi b/doc/developer.texi
> index 5c342c9106..1e95768364 100644
> --- a/doc/developer.texi
> +++ b/doc/developer.texi
> @@ -213,6 +213,14 @@ please use av_log() instead.
>  @item
>  Casts should be used only when necessary. Unneeded parentheses
>  should also be avoided if they don't make the code easier to understand.
> +
> + at item
> +Single expression statements after if or while should always use braces:

No they should not. What makes you think that?

> + at example
> +    if (x) @{
> +        return;
> +    @}
> + at end example
>  @end itemize
>  
>  @section Editor configuration

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190806/f4a97a7a/attachment.sig>


More information about the ffmpeg-devel mailing list