[Ada] gnatpp: documentation for --no-separate-return switch
authorBob Duff <duff@adacore.com>
Wed, 26 Feb 2020 14:51:56 +0000 (09:51 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 9 Jun 2020 08:09:01 +0000 (04:09 -0400)
2020-06-09  Bob Duff  <duff@adacore.com>

gcc/ada/

* doc/gnat_ugn/gnat_utility_programs.rst: Add documentation for
the --no-separate-return switch of gnatpp.

gcc/ada/doc/gnat_ugn/gnat_utility_programs.rst

index 2214415..11de52e 100644 (file)
@@ -3245,6 +3245,14 @@ Alternatively, you may run the script using the following command line:
      Do not place the keyword ``is`` on a separate line in a subprogram body in
      case if the spec occupies more than one line.
 
+   .. index:: --no-separate-return (gnatpp)
+
+
+   :switch:`--no-separate-return`
+     In :switch:`--no-compact` mode, if a subprogram spec does not fit on
+     one line, try to place the ``return`` on the same line as the last
+     formal parameter.
+
    .. index:: --separate-loop (gnatpp)