]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
CODING_STYLE: explicitly call out label indentation
authorJan Beulich <jbeulich@suse.com>
Mon, 5 Dec 2022 12:40:23 +0000 (13:40 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 5 Dec 2022 12:40:23 +0000 (13:40 +0100)
Since the behavior of "diff -p" to use an unindented label as context
identifier often makes it harder to review patches, make explicit the
requirement for labels to be indented.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
CODING_STYLE

index 5faf274b3a0f2a40783b4d6bbdde0a6f8ae13981..7d75debcbf09fc67a1d93be03a41ffb97845f60a 100644 (file)
@@ -47,6 +47,10 @@ void fun(void)
     }
 }
 
+Due to the behavior of GNU diffutils "diff -p", labels should be
+indented by at least one blank.  Non-case labels inside switch() bodies
+are preferred to be indented the same as the block's case labels.
+
 White space
 -----------