From 62a7a70484f78372856b3967f4c9ebb6525b17bd Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Fri, 18 May 2018 02:24:28 +0100 Subject: [PATCH] doc/developer: update style guidelines to include for loops with declarations Signed-off-by: Rostislav Pehlivanov --- doc/developer.texi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/developer.texi b/doc/developer.texi index a0eeefe242..5c342c9106 100644 --- a/doc/developer.texi +++ b/doc/developer.texi @@ -128,6 +128,9 @@ designated struct initializers (@samp{struct s x = @{ .i = 17 @};}); @item compound literals (@samp{x = (struct s) @{ 17, 23 @};}). +@item +for loops with variable definition (@samp{for (int i = 0; i < 8; i++)}); + @item Implementation defined behavior for signed integers is assumed to match the expected behavior for two's complement. Non representable values in integer