[Spice-devel] [PATCH spice-server] style: Group together indentation sections

Frediano Ziglio fziglio at redhat.com
Thu Feb 23 17:37:53 UTC 2017


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 docs/spice_style.txt | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/docs/spice_style.txt b/docs/spice_style.txt
index 99c8390..eb0e30e 100644
--- a/docs/spice_style.txt
+++ b/docs/spice_style.txt
@@ -175,9 +175,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.
@@ -216,7 +219,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.
@@ -283,7 +286,7 @@ default:
 ----
 
 Types indentation
------------------
+~~~~~~~~~~~~~~~~~
 
 [source,c]
 ----
@@ -309,7 +312,7 @@ union {
 ----
 
 Vertical indentation
---------------------
+~~~~~~~~~~~~~~~~~~~~
 
 Use one space no tabs and no vertical alignment.
 [source,c]
@@ -324,7 +327,7 @@ unsigned long f2(int a, char ch);
 ----
 
 Multi line macro indentation
-----------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 [source,c]
 #define MACRO_NAME(a, b, c) {        \
@@ -335,7 +338,7 @@ Multi line macro indentation
 }
 
 Multi line array indentation
-----------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 [source,c]
 char *array[] = {
-- 
2.9.3



More information about the Spice-devel mailing list