[PATCH] CodingStyle: add an extra line for the braces explaination
Lubomir I. Ivanov
neolit123 at gmail.com
Mon Mar 23 07:03:28 PDT 2015
> 18 March 2015 at 02:22, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
> From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
>
> The extra call "dosomethingelse()" is added with the
> intention that user will not be confused to add braces
> around single lined "if" conditions.
>
> Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
> ---
> CodingStyle | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/CodingStyle b/CodingStyle
> index 75aa1d4..ead24d0 100644
> --- a/CodingStyle
> +++ b/CodingStyle
> @@ -42,6 +42,7 @@ Basic rules
>
> if (condition) {
> dosomething();
> + dosomethingelse();
> }
>
> - both sides of an if / else clause either use or do not use curly braces:
bump.
lubomir
--
More information about the subsurface
mailing list