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 10.50.43.170 with SMTP id x10mr10054829igl.8.1458000944646; Mon, 14 Mar 2016 17:15:44 -0700 (PDT) X-Received: by 10.182.246.104 with SMTP id xv8mr272274obc.1.1458000944623; Mon, 14 Mar 2016 17:15:44 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!av4no638640igc.0!news-out.google.com!k1ni18929igd.0!nntp.google.com!nt3no1738769igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 14 Mar 2016 17:15:44 -0700 (PDT) In-Reply-To: <87a8m2jlp7.fsf@adaheads.consafe1.org> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=216.255.169.69; posting-account=rdRzuwoAAAAyW3CSBhs_xgfCUJSc1aNt NNTP-Posting-Host: 216.255.169.69 References: <87a8m2jlp7.fsf@adaheads.consafe1.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Pretty-printer? (Alternatives to "gnatpp") From: Britt Injection-Date: Tue, 15 Mar 2016 00:15:44 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:29765 Date: 2016-03-14T17:15:44-07:00 List-Id: On Sunday, March 13, 2016 at 2:07:34 PM UTC-4, Jacob Sparre Andersen wrote: > What pretty-printers are available for Ada (83-2012)? >=20 > I'm already aware of "gnatpp", but it has two disadvantages: >=20 > 1) You have to have set up the environment to compile the source file, > before you can pretty-print it. Yes, this is a constraint but it also permits gnatpp to make consistent, gl= obal changes like "as declared" casing across all the files in a GNAT proje= ct tree. gnatpp has some remaining quirks but overall it has gotten better = and more flexible over the years. >=20 > 2) ... > What alternatives are there? For formatting single files as you edit, I've been happy enough with the fo= rmatting capabilities build into GPS and GNATbench. These don't require fil= es to be completely compilable. -Britt