From 45acec0e25eda766b77b297509d78e2cd81ce706 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 16 Jul 2014 09:16:47 -0700 Subject: [PATCH] Small update to CodingStyle document Mention variable declarations (they should be at the beginning of code blocks). Signed-off-by: Dirk Hohndel --- CodingStyle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CodingStyle b/CodingStyle index 646a4b9fa..c053cd2d4 100644 --- a/CodingStyle +++ b/CodingStyle @@ -104,6 +104,12 @@ Basic rules } } +- variable declarations + in C code we really like them to be at the beginning of a code block, + not interspersed in the middle. + in C++ we are a bit less strict about this - but still, try not to go + crazy. + Sample Settings ===============