summaryrefslogtreecommitdiffstats
path: root/CODING_STYLE.rst
diff options
context:
space:
mode:
authorDaniel P. Berrangé2019-08-29 18:04:32 +0200
committerDaniel P. Berrangé2019-09-05 15:41:00 +0200
commit9f8efa74d3f1cb9ceeee957ee382c2b4feb2ae30 (patch)
tree196d124ed5f2b8d747098fb54ccd55dc8069d01b /CODING_STYLE.rst
parentdocs: document use of automatic cleanup functions in glib (diff)
downloadqemu-9f8efa74d3f1cb9ceeee957ee382c2b4feb2ae30.tar.gz
qemu-9f8efa74d3f1cb9ceeee957ee382c2b4feb2ae30.tar.xz
qemu-9f8efa74d3f1cb9ceeee957ee382c2b4feb2ae30.zip
docs: split the CODING_STYLE doc into distinct groups
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'CODING_STYLE.rst')
-rw-r--r--CODING_STYLE.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/CODING_STYLE.rst b/CODING_STYLE.rst
index 39397f0f6f..427699e0e4 100644
--- a/CODING_STYLE.rst
+++ b/CODING_STYLE.rst
@@ -7,6 +7,9 @@ QEMU Coding Style
Please use the script checkpatch.pl in the scripts directory to check
patches before submitting.
+Formatting and style
+********************
+
Whitespace
==========
@@ -205,6 +208,9 @@ comment anyway.)
Rationale: Consistency, and ease of visually picking out a multiline
comment from the surrounding code.
+Language usage
+**************
+
Preprocessor
============
@@ -526,6 +532,9 @@ are still some caveats to beware of
}
+QEMU Specific Idioms
+********************
+
Error handling and reporting
============================