summaryrefslogtreecommitdiffstats
path: root/usr.bin/indent/indent.1
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-02-09 21:48:51 +0000
committerbde <bde@FreeBSD.org>2004-02-09 21:48:51 +0000
commit230bb0491dfc8c7495c5d9221e0dd83f981f3a24 (patch)
tree433a65a96ac9674af5f002fd33f672392a77b318 /usr.bin/indent/indent.1
parentfb0b5ce61d257b76d357e8c73de3a01f08a2d4b7 (diff)
downloadFreeBSD-src-230bb0491dfc8c7495c5d9221e0dd83f981f3a24.zip
FreeBSD-src-230bb0491dfc8c7495c5d9221e0dd83f981f3a24.tar.gz
Added an option -ldi<N> to control indentation of local variable names.
The default is to be backwards compatible and non-KNF (use the same indentation for locals as for globals; -ldi0 gives KNF indentation for locals (none)). The indentation for globals also applies to struct member names in local declatations. The indentation of variable names in multi-line declarations is broken in various ways and this commit gives some new variations. indent.1: Also clarified the description of -di<N>.
Diffstat (limited to 'usr.bin/indent/indent.1')
-rw-r--r--usr.bin/indent/indent.113
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.bin/indent/indent.1 b/usr.bin/indent/indent.1
index c0b77ab..1720c99 100644
--- a/usr.bin/indent/indent.1
+++ b/usr.bin/indent/indent.1
@@ -69,6 +69,7 @@
.Op Fl \&ip | Fl nip
.Op Fl l Ns Ar n
.Op Fl \&lc Ns Ar n
+.Op Fl \&ldi Ns Ar n
.Op Fl \&lp | Fl nlp
.Op Fl npro
.Op Fl pcs | Fl npcs
@@ -219,8 +220,10 @@ left of code. Specifying the default
lines-up these comments with the code. See the section on comment
indentation below.
.It Fl \&di Ns Ar n
-Specifies the indentation, in character positions, from a declaration keyword
-to the following identifier. The default is
+Specifies the indentation, in character positions,
+of global variable names and all struct/union member names
+relative to the beginning of their type declaration.
+The default is
.Fl di16 .
.It Fl dj , ndj
.Fl \&dj
@@ -267,6 +270,12 @@ margin. The default is
.Fl \&ip .
.It Fl l Ns Ar n
Maximum length of an output line. The default is 78.
+.It Fl \&ldi Ns Ar n
+Specifies the indentation, in character positions,
+of local variable names
+relative to the beginning of their type declaration.
+The default is for local variable names to be indented
+by the same amount as global ones.
.It Fl \&lp , nlp
Lines-up code surrounded by parenthesis in continuation lines. If a line
has a left paren which is not closed on that line, then continuation lines
OpenPOWER on IntegriCloud