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 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.46.201 with SMTP id i192mr134045ita.55.1506482599139; Tue, 26 Sep 2017 20:23:19 -0700 (PDT) X-Received: by 10.157.83.9 with SMTP id g9mr329oth.24.1506482599078; Tue, 26 Sep 2017 20:23:19 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!paganini.bofh.team!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!o200no769071itg.0!news-out.google.com!194ni1244itf.0!nntp.google.com!o200no771340itg.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 26 Sep 2017 20:23:18 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=76.218.37.33; posting-account=W2gdXQoAAADxIuhBWhPFjUps3wUp4RhQ NNTP-Posting-Host: 76.218.37.33 References: <4a579c5a-c5ce-486a-ad4b-db587e80dc0c@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How to check code indentation? From: Stephen Leake Injection-Date: Wed, 27 Sep 2017 03:23:19 +0000 Content-Type: text/plain; charset="UTF-8" Xref: news.eternal-september.org comp.lang.ada:48235 Date: 2017-09-26T20:23:18-07:00 List-Id: On Monday, September 25, 2017 at 6:09:05 PM UTC-5, Victor Porton wrote: > gautier_niouzes@hotmail.com wrote: > > >> Is there any free tool to check (or even better automatically correct) > >> Ada (preferably Ada2012) indentation? > > > > There are reformatters, like: > > - ICCFMT: http://www.irvine.com/freebies.html > > I need Ada2012 support. It does not. > > > - the reformatter tool in AdaGIDE: https://sf.net/projects/adagide > > It is for Windows. I am a Linux user. > > > ...and probably others. > > If you want to check the before vs. after states to be sure nothing got > > lost on the way, the Normalize tool can be helpful: > > http://adalog.fr/en/components.html#Normalize > > It doesn't help in my task. > > -- > Victor Porton - http://portonvictor.org Emacs Ada mode does indentation, with full Ada 2012 support. With a little elisp programming, you can use it for both test and fix. The simplest way to test is to save the file to a different name, indent, and diff.