From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:6c90:: with SMTP id w138-v6mr998094itb.12.1543365241098; Tue, 27 Nov 2018 16:34:01 -0800 (PST) X-Received: by 2002:a9d:ef3:: with SMTP id 106mr36106otj.6.1543365240843; Tue, 27 Nov 2018 16:34:00 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!weretis.net!feeder4.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.166.215.MISMATCH!k10no33815itk.0!news-out.google.com!y103-v6ni33ita.0!nntp.google.com!k10no33811itk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 27 Nov 2018 16:34:00 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:2c7:8700:4e:4cd4:acf3:928a:3399; posting-account=H0kyAgoAAAAi5Y5HP7CX2okpzT_2ypph NNTP-Posting-Host: 2601:2c7:8700:4e:4cd4:acf3:928a:3399 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3bec5f4b-a5e4-408a-b9e8-9bdd18ce0671@googlegroups.com> Subject: gnatpp parameter alignment From: julian.fondren@gmail.com Injection-Date: Wed, 28 Nov 2018 00:34:01 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:54916 Date: 2018-11-27T16:34:00-08:00 List-Id: Hello comp.lang.ada, I thought I'd always use gnatpp for styling, but I've found this formatting result that I don't like at all, and which seems to come up a lot in my code (so often that !pp formatting escapes would be a pain): function waitpid (Pid : Integer; Wstatus : System.Address; Options : Integer) return Integer; What I'd prefer is that, if parameters take up more than one line, that they just switch to an entirely vertical formatting, something like: function waitpid (Pid : Integer; Wstatus : System.Address; Options : Integer) return Integer; or function waitpid ( Pid : Integer; Wstatus : System.Address; Options : Integer) return Integer; Many other variations would be acceptable, as long as there aren't multiple parameters on a line and *also* parameters across multiple lines, especially with that long-distance horizontal alignment that makes "Options" look like it's unrelated to the function definition around it. I've looked through gnatpp's flags and didn't find anything for this. I like horizontal alignment in general, and I can deal with most of the rest of gnatpp's results, so I don't want to turn off huge swaths of gnatpp formatting. I just want this one case to not visually suggest that a three-argument function has only two arguments. Thanks.