Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145382556
D2842.1777771977.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
748 B
Referenced Files
None
Subscribers
None
D2842.1777771977.diff
View Options
Index: share/man/man9/style.9
===================================================================
--- share/man/man9/style.9
+++ share/man/man9/style.9
@@ -507,9 +507,10 @@
.Ql ( \&{
and
.Ql \&} )
-are
+are generally
used for control statements with zero or only a single statement unless that
statement is more than a single line in which case they are permitted.
+Code may consistently always use braces for single statements.
Forever loops are done with
.Ic for Ns 's ,
not
@@ -565,6 +566,8 @@
Closing and opening braces go on the same line as the
.Ic else .
Braces that are not necessary may be left out.
+Braces that are not necessary may also be left in.
+The choice should be at the file level.
.Bd -literal
if (test)
stmt;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 3, 1:32 AM (9 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28544075
Default Alt Text
D2842.1777771977.diff (748 B)
Attached To
Mode
D2842: Update style.9 to reflect consensus on developer's mailing list.
Attached
Detach File
Event Timeline
Log In to Comment