]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
docs: move CODING_STYLE into the developer documentation
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 23 Feb 2021 09:59:31 +0000 (09:59 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 24 Feb 2021 11:05:21 +0000 (11:05 +0000)
There is no particular reason to keep this on it's own in the root of
the tree. Move it into the rest of the fine developer manual and fixup
any links to it. The only tweak I've made is to fix the code-block
annotations to mention the language C.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Claudio Fontana <cfontana@suse.de>
Message-Id: <20210223095931.16908-1-alex.bennee@linaro.org>

README.rst
docs/devel/index.rst
docs/devel/style.rst [moved from CODING_STYLE.rst with 99% similarity]
scripts/fix-multiline-comments.sh

index ce39d890778dba201652385a3560119ee0c4149e..91aa1e314c56a428df43fd5f01c864949edc0146 100644 (file)
@@ -66,7 +66,9 @@ When submitting patches, one common approach is to use 'git
 format-patch' and/or 'git send-email' to format & send the mail to the
 qemu-devel@nongnu.org mailing list. All patches submitted must contain
 a 'Signed-off-by' line from the author. Patches should follow the
-guidelines set out in the CODING_STYLE.rst file.
+guidelines set out in the `style section
+<https://www.qemu.org/docs/master/devel/style.html>` of
+the Developers Guide.
 
 Additional information on submitting patches can be found online via
 the QEMU website
index 22854e334db9403a5fc5e4ebab26311f04ee7fea..ae664da00c86f4814baedf0ba8da033d33b7db5e 100644 (file)
@@ -14,6 +14,7 @@ Contents:
    :maxdepth: 2
 
    build-system
+   style
    kconfig
    testing
    fuzzing
similarity index 99%
rename from CODING_STYLE.rst
rename to docs/devel/style.rst
index 7bf4e39d4871080a5cbd54cd9a1eb32bb8f0ac58..8b0bdb3570437a43ac564bf6099a89eb4c2c332b 100644 (file)
@@ -641,7 +641,7 @@ trace-events style
 
 In trace-events files, use a '0x' prefix to specify hex numbers, as in:
 
-.. code-block::
+.. code-block:: c
 
     some_trace(unsigned x, uint64_t y) "x 0x%x y 0x" PRIx64
 
@@ -649,14 +649,14 @@ An exception is made for groups of numbers that are hexadecimal by
 convention and separated by the symbols '.', '/', ':', or ' ' (such as
 PCI bus id):
 
-.. code-block::
+.. code-block:: c
 
     another_trace(int cssid, int ssid, int dev_num) "bus id: %x.%x.%04x"
 
 However, you can use '0x' for such groups if you want. Anyway, be sure that
 it is obvious that numbers are in hex, ex.:
 
-.. code-block::
+.. code-block:: c
 
     data_dump(uint8_t c1, uint8_t c2, uint8_t c3) "bytes (in hex): %02x %02x %02x"
 
index 93f9b106698a37381844ebd67a31d05a50c23405..c15a041272023ab6ac0e3668cdfca79b894059f6 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-# Fix multiline comments to match CODING_STYLE
+# Fix multiline comments to match docs/devel/style.rst
 #
 # Copyright (C) 2018 Red Hat, Inc.
 #