From 533b1210ea8e86bf90d55c01560b82f1741ca78d Mon Sep 17 00:00:00 2001 From: Uri Simchoni Date: Sun, 2 Oct 2016 20:40:06 +0300 Subject: README.Coding: Add rule about function declaration indentation Signed-off-by: Uri Simchoni Reviewed-by: Jeremy Allison --- README.Coding | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.Coding b/README.Coding index 74dbc6eea66..2bd7552f9fe 100644 --- a/README.Coding +++ b/README.Coding @@ -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 ------------------------- -- cgit v1.2.1