Next: , Previous: Casing Control, Up: Switches for gnatpp


14.1.3 Construct Layout Control

This group of gnatpp switches controls the layout of comments and complex syntactic constructs. See Formatting Comments for details on their effect.

-c0
All the comments remain unchanged
-c1
GNAT-style comment line indentation (this is the default).
-c2
Reference-manual comment line indentation.
-c3
GNAT-style comment beginning
-c4
Reformat comment blocks
-c5
Keep unchanged special form comments


-l1
GNAT-style layout (this is the default)
-l2
Compact layout
-l3
Uncompact layout


-N
All the VT characters are removed from the comment text. All the HT characters are expanded with the sequences of space characters to get to the next tab stops.


--no-separate-is
Do not place the keyword is on a separate line in a subprogram body in case if the spec occupies more then one line.


--separate-label
Place statement label(s) on a separate line, with the following statement on the next line.


--separate-loop-then
Place the keyword loop in FOR and WHILE loop statements and the keyword then in IF statements on a separate line.


--no-separate-loop-then
Do not place the keyword loop in FOR and WHILE loop statements and the keyword then in IF statements on a separate line. This option is incompatible with --separate-loop-then option.


--use-on-new-line
Start each USE clause in a context clause from a separate line.


--separate-stmt-name
Use a separate line for a loop or block statement name, but do not use an extra indentation level for the statement itself.

The -c1 and -c2 switches are incompatible. The -c3 and -c4 switches are compatible with each other and also with -c1 and -c2. The -c0 switch disables all the other comment formatting switches.

The -l1, -l2, and -l3 switches are incompatible.