]> git.proxmox.com Git - qemu.git/blobdiff - CODING_STYLE
CODING_STYLE: explicitly allow braceless 'else if'
[qemu.git] / CODING_STYLE
index 5ecfa2216109963cb646b5fcf00a10c85d3d0655..6e61c490894e244e7b8bc3c8553de9cae8cc9ead 100644 (file)
@@ -68,6 +68,10 @@ keyword.  Example:
         printf("a was something else entirely.\n");
     }
 
+Note that 'else if' is considered a single statement; otherwise a long if/
+else if/else if/.../else sequence would need an indent for every else
+statement.
+
 An exception is the opening brace for a function; for reasons of tradition
 and clarity it comes on a line by itself: