]> git.proxmox.com Git - mirror_qemu.git/blobdiff - CODING_STYLE
xics: Add xics_find_source()
[mirror_qemu.git] / CODING_STYLE
index 7c82d4d0af02db01c625f401738c064264784808..4280945ff021d35f54d0a9b8c0214372c8fa8655 100644 (file)
@@ -1,4 +1,4 @@
-Qemu Coding Style
+QEMU Coding Style
 =================
 
 Please use the script checkpatch.pl in the scripts directory to check
@@ -84,3 +84,10 @@ and clarity it comes on a line by itself:
 Rationale: a consistent (except for functions...) bracing style reduces
 ambiguity and avoids needless churn when lines are added or removed.
 Furthermore, it is the QEMU coding style.
+
+5. Declarations
+
+Mixed declarations (interleaving statements and declarations within blocks)
+are not allowed; declarations should be at the beginning of blocks.  In other
+words, the code should not generate warnings if using GCC's
+-Wdeclaration-after-statement option.