mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
README.Coding: Add rule about function declaration indentation
Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
1b5dd78c7b
commit
533b1210ea
@ -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
|
||||
-------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user