comp.lang.ada
 help / color / mirror / Atom feed
From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: How to check code indentation?
Date: Mon, 25 Sep 2017 16:43:43 -0700 (PDT)
Date: 2017-09-25T16:43:43-07:00	[thread overview]
Message-ID: <ac7ed056-fe3b-4791-97f2-d042a08e1483@googlegroups.com> (raw)
In-Reply-To: <oqc2d5$14ih$1@gioia.aioe.org>

On Monday, September 25, 2017 at 4:10:33 PM UTC-7, Victor Porton wrote:
> Victor Porton wrote:
> 
> > I have a source code where some declarations or statements are indented
> > wrongly. An example:
> > 
> >    function raptor_namespaces_find_namespace (Stack:
> >    Namespace_Stack_Handle;
> >                                                 Prefix: chars_ptr;
> >                                                 Len: int)
> >                                                 return Namespace_Handle
> >      with Import, Convention=>C;
> > 
> > ("Prefix" is not below "Stack" but two spaces are extraneous.)
> > 
> > I use -gnaty3 but weirdly GNAT 7.2.0 does not detect this error.
> > 
> > Is there any free tool to check (or even better automatically correct) Ada
> > (preferably Ada2012) indentation?
> 
> Hm, GNAT GPS does (however sometimes wrong) Ada code reformatting when 
> pressing Tab key.
> 
> Can it be scripted in some way to do Ada reformatting automatically for a 
> set of source files?

Have you looked at gnatpp command? 

Anh Vo

  reply	other threads:[~2017-09-25 23:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-25 21:08 How to check code indentation? Victor Porton
2017-09-25 22:35 ` gautier_niouzes
2017-09-25 23:08   ` Victor Porton
2017-09-27  3:23     ` Stephen Leake
2017-09-25 23:10 ` Victor Porton
2017-09-25 23:43   ` Anh Vo [this message]
2017-09-25 23:59     ` Victor Porton
2017-09-26  0:00       ` Victor Porton
2017-09-27  4:07 ` Per Sandberg
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox