qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Drop braces around single statement rule
@ 2010-07-31 16:23 malc
  2010-07-31 16:47 ` Aurelien Jarno
  2010-07-31 20:23 ` Blue Swirl
  0 siblings, 2 replies; 16+ messages in thread
From: malc @ 2010-07-31 16:23 UTC (permalink / raw)
  To: qemu-devel

History has shown that this particular rule is unenforcable.

Signed-off-by: malc <av1474@comtv.ru>
---
 CODING_STYLE |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/CODING_STYLE b/CODING_STYLE
index 92036f3..e0b5376 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -54,16 +54,17 @@ readers that they are seeing a wrapped version; otherwise avoid this prefix.
 
 4. Block structure
 
-Every indented statement is braced; even if the block contains just one
-statement.  The opening brace is on the line that contains the control
-flow statement that introduces the new block; the closing brace is on the
-same line as the else keyword, or on a line by itself if there is no else
-keyword.  Example:
+The opening brace is on the line that contains the control flow
+statement that introduces the new block; the closing brace is on the
+same line as the else keyword, or on a line by itself if there is no
+else keyword. Example:
 
     if (a == 5) {
         printf("a was 5.\n");
+        do5stuff();
     } else if (a == 6) {
         printf("a was 6.\n");
+        do6stuff();
     } else {
         printf("a was something else entirely.\n");
     }
-- 
1.6.6.1

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-08-02 16:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-31 16:23 [Qemu-devel] [PATCH] Drop braces around single statement rule malc
2010-07-31 16:47 ` Aurelien Jarno
2010-07-31 16:51   ` Aurelien Jarno
2010-07-31 20:23 ` Blue Swirl
2010-07-31 20:35   ` malc
2010-07-31 23:49   ` Aurelien Jarno
2010-08-02 15:20     ` Anthony Liguori
2010-08-02 15:41       ` Kevin Wolf
2010-08-02 15:48         ` Anthony Liguori
2010-08-02 16:06           ` malc
2010-08-02 16:18             ` Anthony Liguori
2010-08-02 16:29               ` Blue Swirl
2010-08-02 16:32                 ` Anthony Liguori
2010-08-02 15:55         ` malc
2010-08-02 16:04           ` Anthony Liguori
2010-08-02 16:24       ` Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).