File: gnatpp.1

package info (click to toggle)
asis 2007-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,832 kB
  • ctags: 34
  • sloc: ada: 93,665; makefile: 225
file content (206 lines) | stat: -rw-r--r-- 5,896 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
.\" Hey, Emacs!  This is an -*- nroff -*- source file.
.\"
.\" Copyright (C) 2006 Ludovic Brenta <ludovic@ludovic-brenta.org>
.\"
.\" This is free software; you can redistribute it and/or modify it under
.\" the terms of the GNU General Public License as published by the Free
.\" Software Foundation; either version 2, or (at your option) any later
.\" version.
.\" 
.\" This is distributed in the hope that it will be useful, but WITHOUT
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
.\" for more details.
.\" 
.\" You should have received a copy of the GNU General Public License with
.\" your Debian GNU/Linux system, in /usr/share/common-licenses/GPL, If not,
.\" write to the Free Software Foundation, Inc., 51 Franklin St, Fifth
.\" Floor, Boston, MA  02110-1301  USA.
.\"
.TH "GNATPP" 1 "June 2006" "GNU Ada Tools" "ASIS Tools"
.SH NAME
\fBgnatpp\fR \- Ada pretty-printer
.SH SYNOPSIS
\fBgnatpp\fR [options] {\fIfilename\fR | \fB-files\fR \fIfilename\fR} [\fIgcc_switches\fR]
.SH DESCRIPTION
\fBgnatpp\fR recreates the source text of the specified Ada units from
GNAT's parse tree.  Along the way, it reformats the source text
according to the many options.  The defaults are suitable for the GNAT
style guide.
.PP
.SH OPTIONS
.IP \fB-A\fR(0|1|2|3|4|5)
set alignment, all the alignments are set ON by default
.RS
.IP 0
set the default for all the alignments OFF
.IP 1
align colons in declarations
.IP 2
align assignments in declarations
.IP 3
align assignments in assignment statements
.IP 4
align arrow delimiters in associations
.IP 5
align 'AT' keywords in component clauses
.RE
.IP \fB-a\fR(L|U|M)
set attribute casing
.RS
.IP L
lower case
.IP U
upper case
.IP M
mixed case (set as default)
.RE
.IP \fB-c\fR(0|1|2|3|4)
comments layout
.RS
.IP 0
do not format comments
.IP 1
GNAT style comment line indentation (set as default)
.IP 2
standard comment line indentation
.IP 3
GNAT style comment beginning
.IP 4
reformat comment blocks
.RE
.IP \fB-cl\fR\fInnn\fR
indentation level for continuation lines, \fInnn\fR from 1 .. 9
.IP \fB-D\fR\fIfile\fR
set \fIfile\fR as the dictionary file defining casing exceptions
.IP \fB-D-\fR
do not use RM95-defined casing for predefined names, use casing
defined by \fB-n\fR parameter and dictionary file(s) instead
.IP \fB-e\fR
do not set missed end/exit labels
.IP \fB-ff\fR
put Form Feed after a pragma Page
.IP \fB-gnatec\fR\fIpath\fR
the same as GNAT -gnatec option
.IP \fB-i\fR\fInnn\fR
indentation level, \fInnn\fR from 1 .. 9, the default value is 3
.IP \fB-I\fR\fRdir\fR
the same as GNAT -I option
.IP \fB-I-\fR
the same as GNAT -I- option
.IP \fB-k\fR(L|U)
set keyword casing
.RS
.IP L
lower case (set as default)
.IP U
upper case
.RE
.IP \fB-l\fR(1|2|3)
set construct layout
.RS
.IP 1
GNAT style layout (set as default)
.IP 2
compact layout
.IP 3
uncompact layout
.RE
.IP \fB-M\fR\fInnn\fR
set maximum line length, \fInnn\fR from 32 .. 256, the default value
is 79
.IP \fB-n\fR(D|U|L|M)
set name casing (for both defining and usage occurrences)
.RS
.IP D
as declared (set as default)
.IP U
all in upper case
.IP L
all in lower case
.IP M
mixed
.RE
.IP \fB-N\fR
no tabulation in comments
.IP \fB-p\fR(L|U|M)
.RS
.IP L
lower case
.IP U
upper case
.IP M
mixed case (set as default)
.RE
.IP \fB--RTS=\fR\fIdir\fR
the same as GNAT --RTS option
.IP \fB-T\fR\fInnn\fR
do not use additional indentation level for case alternatives and
variants if their number is \fInnn\fR or more (the default value is
10)
.IP \fB-q\fR
quiet mode
.IP \fB-v\fR
verbose mode
.IP \fB-dd\fR
progress indicator verbose mode
.IP \fB-w\fR
warnings ON
.SS Output file control
.IP \fB-pipe\fR
send the output into stdout
.IP "\fB-o\fR \fIoutput_file\fR"
write the output into output_file. Give up if \fIoutput_file\fR
already exists
.IP "\fB-of\fR \fIoutput_file\fR"
write the output into output_file, overriding the existing file
.IP \fB-r\fR
replace the argument source with the pretty-printed source and copy
the argument source into \fIfilename.npp\fR. Give up if
\fIfilename.npp\fR already exists.
.IP \fB-rf\fR
replace the argument source with the pretty-printed source and copy
the argument source into \fIfilename.npp\fR, overriding the existing
file
.IP \fB-rnb\fR
replace the argument source with the pretty-printed source and do not
create the back-up copy of the argument source
.SS Input files
.IP \fIfilename\fR
the name of the Ada source file to be reformatted.  Wildcards are
allowed.
.IP "\fB-files\fR \fIfilename\fR"
the name of the text file containing a list of Ada source files to
reformat
.SS GCC switches
.IP \fIgcc_switches\fR
Passed to gnatgcc as "\fB-cargs\fR \fIgcc_switches\fR".
.SH AUTHOR
.PP
ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at
the Software Engineering Laboratory of the Swiss Federal Institute of
Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with
the Scientific Research Computer Center of Moscow State University
(SRCC MSU), Russia, with funding partially provided by grants from the
Swiss National Science Foundation and the Swiss Academy of Engineering
Sciences.  ASIS-for-GNAT is now maintained by AdaCore
(http://www.adacore.com).
.PP
This manual page was written by Ludovic Brenta
<ludovic@ludovic-brenta.org> for the Debian project, from the gnatpp
sources.
.SH COPYRIGHT
Copyright (c) 1995-2006, Free Software Foundation, Inc.
.SH SEE ALSO
.TP
asistant(1), gnat(1), gnatcheck(1), gnatelim(1), gnatmetric(1),
gnatstub(1)
.TP
\fI/usr/share/doc/asis-programs/README.gnatpp\fR
.TP
\fBinfo asis_ug\fR ASIS-for-GNAT User's Guide, provided by by package
\fBlibasis-doc\fR in the Info system, and in text, PDF and HTML
formats in \fI/usr/share/doc/libasis-doc\fR.  (\fBasis-doc\fR is in
the non-free section of Debian).
.TP
\fBinfo asis_rm\fR ASIS-for-GNAT Reference Manual, same package.