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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b87fa5378f5d5066 X-Google-Attributes: gid103376,public From: Rolf Ebert Subject: Re: Help : GNAT Style checking Date: 1997/01/26 Message-ID: #1/1 X-Deja-AN: 212818110 references: <854030639.1@cs.york.ac.uk> organization: Rolf Ebert from home newsgroups: comp.lang.ada Date: 1997-01-26T00:00:00+00:00 List-Id: cro100@minster.york.ac.uk (Craig R. Osborne (3X0)) writes: > Hi, > > I am currently modifying distributed systems annex to add active > replication. This involes modifying system packages e.g system.rpc > > When I recompile it, I have to use the Gnat style checking flag -gnatg. > This produces a load of style errors, like badly alignment, no horizontal > tabs, bad comment line etc. It won't recompile without this flag, it > produces error something like "Cannot alter the predefined langauge files" > > I was wondering if there is a program available that will tidy up my code > so that it will pass through the style checks, and actually allow me to > recompile it. > > Can you please reply via E-mail, > > Many Thanks in Advance > Craig Osborne > > ----------------------------------- > | Craig Osborne | > | Department of Computer Science | > | University of York | > | York, Y01 5DD | > | UK | > | E-mail : cro100@york.ac.uk | > ----------------------------------- Get the latest version of (X)Emacs and the emacs-ada-mode from cs.nyu.edu. Reindent the buffer with the default settings (C-x h C-c C-l). This should get all indentation right, better save now which replaces all tabs with the corresponding number of blanks and deletes all trailing blanks at the ends of lines. Now you might try the undocumented function (M-x ada-gnat-style) at your own risk. It cleans comments (>= 2 blanks after --), places a blanks after all commas (`,') and between text and a opening paranthesis. This should give you a pretty file ready for gcc -gnatg. Rolf ebert@waporo.muc.de