diff options
author | eadler <eadler@FreeBSD.org> | 2012-03-03 18:07:53 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-03-03 18:07:53 +0000 |
commit | 5794e3ef03066c06566d80796cdb60efbe337733 (patch) | |
tree | f8b5e441677e2ecdb66b3b0ddc1ee2caedf119fb /usr.bin/indent | |
parent | 5d1c8921393a5655a4c943e92a3296efc6dc3acd (diff) | |
download | FreeBSD-src-5794e3ef03066c06566d80796cdb60efbe337733.zip FreeBSD-src-5794e3ef03066c06566d80796cdb60efbe337733.tar.gz |
Document the [n]eei and [n]bacc options
PR: docs/165009
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
Approved by: bcr
MFC after: 1 week
Diffstat (limited to 'usr.bin/indent')
-rw-r--r-- | usr.bin/indent/indent.1 | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/usr.bin/indent/indent.1 b/usr.bin/indent/indent.1 index 1a7c789..f839002 100644 --- a/usr.bin/indent/indent.1 +++ b/usr.bin/indent/indent.1 @@ -34,7 +34,7 @@ .\" @(#)indent.1 8.1 (Berkeley) 7/1/93 .\" $FreeBSD$ .\" -.Dd June 29, 2004 +.Dd March 3, 2012 .Dt INDENT 1 .Os .Sh NAME @@ -43,9 +43,12 @@ .Sh SYNOPSIS .Nm .Op Ar input-file Op Ar output-file +.Op Fl bacc | Fl nbacc .Op Fl bad | Fl nbad .Op Fl bap | Fl nbap .Bk -words +.Op Fl ei | Fl ei +.Op Fl eei | Fl eei .Op Fl bbb | Fl nbbb .Ek .Op Fl \&bc | Fl nbc @@ -126,6 +129,15 @@ checks to make sure that it is different from The options listed below control the formatting style imposed by .Nm . .Bl -tag -width Op +.It Fl bacc , nbacc +If +.Fl bacc +is specified, a blank line is forced around every conditional +compilation block. +For example, in front of every #ifdef and after every #endif. +Other blank lines surrounding such blocks will be swallowed. +Default: +.Fl nbacc . .It Fl bad , nbad If .Fl bad @@ -267,6 +279,16 @@ will have the same indentation as the preceding statement. The default is .Fl ei . +.It Fl eei , neei +Enables (disables) extra indentation on continuation lines of +the expression part of +.Ic if +and +.Ic while +statements. +These continuation lines will be indented one extra level. +The default is +.Fl neei . .It Fl fbs , nfbs Enables (disables) splitting the function declaration and opening brace across two lines. |