[Spice-commits] docs/spice_style.txt

Frediano Ziglio fziglio at kemper.freedesktop.org
Mon Feb 27 11:54:05 UTC 2017


 docs/spice_style.txt |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

New commits:
commit 5277ac892196fc4d0d45775bc0649a6c95cf8b8d
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Thu Feb 23 17:36:54 2017 +0000

    style: Group together indentation sections
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/docs/spice_style.txt b/docs/spice_style.txt
index cd874df..4614598 100644
--- a/docs/spice_style.txt
+++ b/docs/spice_style.txt
@@ -167,9 +167,12 @@ for (i = 0; i < 10; ++i) {
     some_func(var, i * i + *ptr, &var, sizeof(var));
 }
 
+Indentation
+-----------
+
 [[function_indentation]]
 Function Indentation
---------------------
+~~~~~~~~~~~~~~~~~~~~
 
 * No spaces between function name to left bracket.
 * Curly bracket start on new line.
@@ -208,7 +211,7 @@ function(type1 arg1, type2 arg2,
 ----
 
 Branching indentation
----------------------
+~~~~~~~~~~~~~~~~~~~~~
 
 * Add space after a branch keyword and after the right bracket.
 * Curly bracket starts on the same line the branch starts.
@@ -275,7 +278,7 @@ default:
 ----
 
 Types indentation
------------------
+~~~~~~~~~~~~~~~~~
 
 [source,c]
 ----
@@ -301,7 +304,7 @@ union {
 ----
 
 Vertical indentation
---------------------
+~~~~~~~~~~~~~~~~~~~~
 
 Use one space no tabs and no vertical alignment.
 [source,c]
@@ -316,7 +319,7 @@ unsigned long f2(int a, char ch);
 ----
 
 Multi line macro indentation
-----------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 [source,c]
 #define MACRO_NAME(a, b, c) {        \
@@ -327,7 +330,7 @@ Multi line macro indentation
 }
 
 Multi line array indentation
-----------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 [source,c]
 char *array[] = {


More information about the Spice-commits mailing list