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:41d4:: with SMTP id b81mr2650790itd.0.1543414747060; Wed, 28 Nov 2018 06:19:07 -0800 (PST) X-Received: by 2002:aca:cc0f:: with SMTP id c15mr87901oig.3.1543414746769; Wed, 28 Nov 2018 06:19:06 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!q69no72418itb.0!news-out.google.com!y103-v6ni80ita.0!nntp.google.com!q69no72417itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 28 Nov 2018 06:19:06 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:2c7:8700:4e:addf:874d:e0f3:3475; posting-account=H0kyAgoAAAAi5Y5HP7CX2okpzT_2ypph NNTP-Posting-Host: 2601:2c7:8700:4e:addf:874d:e0f3:3475 References: <3bec5f4b-a5e4-408a-b9e8-9bdd18ce0671@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2aee23a5-7e95-4f08-a4eb-a19ef4a9a6ab@googlegroups.com> Subject: Re: gnatpp parameter alignment From: julian.fondren@gmail.com Injection-Date: Wed, 28 Nov 2018 14:19:07 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:54923 Date: 2018-11-28T06:19:06-08:00 List-Id: On Wednesday, November 28, 2018 at 3:02:35 AM UTC-6, Simon Wright wrote: > julian.fondren@gmail.com writes: > > > 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; > > I suspect you're using GNAT CE 2018. > > I've tried this with FSF GCC 4.8..9 and GNAT GPL 2015..2017 and all give > the result you prefer. Only CE 2018 shows this bad result. > Ah, this is true. This result is from the latest binaries at https://www.adacore.com/download GNATPP Community 2018 (20180523) Copyright (C) 2004-2018, AdaCore. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. On the Fedora box I'm using those as well because Fedora's packages excluded gnatpp -- I've no idea why, but 'dnf whatprovides */gnatpp' returns nothing and none of these packages provided it: fedora-gnat-project-common libgnat-devel libgnat-static libgnat gcc-gnat For now I can just use whatever --par-threshold= keeps this formatting away for a code base, and then revert to defaults when a newer build's available. Thanks again!