README.Coding: Add rule about function declaration indentation
authorUri Simchoni <uri@samba.org>
Sun, 2 Oct 2016 17:40:06 +0000 (20:40 +0300)
committerJeremy Allison <jra@samba.org>
Tue, 4 Oct 2016 00:00:24 +0000 (02:00 +0200)
Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
README.Coding

index 74dbc6eea66017751381d8992fb9661c6522624b..2bd7552f9fee594f8fa813119e969f03ed7627cd 100644 (file)
@@ -191,6 +191,12 @@ parameters across lines and not as encourage for gratuitous line
 splitting.  Never split a line before columns 70 - 79 unless you
 have a really good reason. Be smart about formatting.
 
+One exception to the previous rule is function declarations and
+definitions. In function declarations and definitions, either the
+declaration is a one-liner, or each parameter is listed on its own
+line. The rationale is that if there are many parameters, each one
+should be on its own line to make tracking interface changes easier.
+
 
 If, switch, & Code blocks
 -------------------------