From 05cb816ba5a1b4ab00df26699829483d7c1d156c Mon Sep 17 00:00:00 2001 From: Bob Duff Date: Wed, 26 Feb 2020 09:51:56 -0500 Subject: [PATCH] [Ada] gnatpp: documentation for --no-separate-return switch 2020-06-09 Bob Duff 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gcc/ada/doc/gnat_ugn/gnat_utility_programs.rst b/gcc/ada/doc/gnat_ugn/gnat_utility_programs.rst index 2214415..11de52e 100644 --- a/gcc/ada/doc/gnat_ugn/gnat_utility_programs.rst +++ b/gcc/ada/doc/gnat_ugn/gnat_utility_programs.rst @@ -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) -- 2.7.4