Date: Sat, 3 Dec 2016 00:24:34 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r309451 - head/usr.bin/indent Message-ID: <201612030024.uB30OY7G002033@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Sat Dec 3 00:24:34 2016 New Revision: 309451 URL: https://svnweb.freebsd.org/changeset/base/309451 Log: Document undocumented indent(1) options badp/nbadp, bs/nbs, and lc. Submitted by: Piotr Stefaniak Differential Revision: https://reviews.freebsd.org/D8690 Modified: head/usr.bin/indent/indent.1 Modified: head/usr.bin/indent/indent.1 ============================================================================== --- head/usr.bin/indent/indent.1 Sat Dec 3 00:18:38 2016 (r309450) +++ head/usr.bin/indent/indent.1 Sat Dec 3 00:24:34 2016 (r309451) @@ -30,7 +30,7 @@ .\" @(#)indent.1 8.1 (Berkeley) 7/1/93 .\" $FreeBSD$ .\" -.Dd August 3, 2016 +.Dd December 2, 2016 .Dt INDENT 1 .Os .Sh NAME @@ -41,6 +41,7 @@ .Op Ar input-file Op Ar output-file .Op Fl bacc | Fl nbacc .Op Fl bad | Fl nbad +.Op Fl badp | Fl nbadp .Op Fl bap | Fl nbap .Bk -words .Op Fl ei | Fl ei @@ -50,6 +51,7 @@ .Op Fl \&bc | Fl nbc .Op Fl \&bl .Op Fl \&br +.Op Fl bs | Fl nbs .Op Fl c Ns Ar n .Op Fl \&cd Ns Ar n .Bk -words @@ -143,6 +145,14 @@ is specified, a blank line is forced aft declarations. Default: .Fl nbad . +.It Fl badp , nbadp +This is vaguely similar to +.Fl bad +, except that it only applies to the first set of declarations +in a procedure (just after the first `{') and it causes a blank +line to be generated even if there are no declarations. +The default is +.Fl nbadp. .It Fl bap , nbap If .Fl bap @@ -182,6 +192,10 @@ if (...) { code } .Ed +.It Fl bs , nbs +Whether a blank should always be inserted after sizeof. +The default is +.Fl nbs. .It Fl c Ns Ar n The column in which comments on code start. The default is 33. @@ -324,6 +338,10 @@ The default is .It Fl l Ns Ar n Maximum length of an output line. The default is 78. +.It Fl lc Ns Ar n +Maximum length of an output line in a block comment. +The default is 0, which means to limit block comment lines in accordance with +.Fl l. .It Fl \&ldi Ns Ar n Specifies the indentation, in character positions, of local variable names
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612030024.uB30OY7G002033>