From: Patrick <patrick@spellingbeewinnars.org>
Subject: Re: astyle/cindent for Ada?
Date: Fri, 27 Jul 2012 14:40:46 -0700 (PDT)
Date: 2012-07-27T14:40:46-07:00 [thread overview]
Message-ID: <9393e18c-212b-4dba-b2bc-4970800a8f25@googlegroups.com> (raw)
In-Reply-To: <b7f87eac-d4c2-4d6b-8cc0-623869e697e3@googlegroups.com>
Hi Ludovic
I would be the one to post the bug report only I have switch distros so many times I can't be sure what the set up was when I observed this.
I am having problems as well with fsf gnat.
I have a simple ada file I ran with this on Xubuntu:
gnatpp first_procedure.adb
I got this result:
gnatpp: No rule to check specified
gnatcheck: the GNAT rule checking tool
usage: gnatcheck [options] {filename} {-files=filename} [-cargs gcc_switches] -rules rule_switches
options:
-a - process RTL units
-d - debug mode
-dd - progress indicator mode (for use in GPS)
-h - print out the list of the currently implemented rules
-mn - n is the maximum number of diagnoses in Stdout
(n in 0 .. 1000, 0 means no limit)
-q - quiet mode (do not report detections in Stdout)
-t - report execution time in Stderr
-v - verbose mode
-log - duplicate all the messages sent to Stderr in log file
gnatpp.log
-s - short form of the report file
--include-file=filename - add the content of filename into generated report
-o filename - specify the name of the report file
filename - the name of the Ada source file to be analyzed.
Wildcards are allowed
-files=filemane - the name of the text file containing a list of Ada
source filesto analyze
gcc_switches - a list of switches that are valid switches for gcc
rule_switches - a list of the following switches
-from=filename - read rule options from filename
+ALL - turn all the rules ON
-ALL - turn all the rules OFF
+R<rule_id>[:param] - turn ON a given rule [with given parameter]
-R<rule_id> - turn OFF a given rule
-R<rule_id>:param - turn OFF some of the checkS for a given rule,
depending on the specified parameter
where <rule_id> - ID of one of the currently implemented
rules, use '-h' for the full list
param - string representing parameter(s) of a given rule, more than
one parameter can be set separated by ','
I did the same with the GNAT binary from Adacore and it formatted the code differently.
Have I done something stupid or is gnatpp not enabled in my gnat version?
I can post this bug if it is helpful-Patrick
next prev parent reply other threads:[~2012-07-27 21:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-27 15:56 astyle/cindent for Ada? awdorrin
2012-07-27 17:45 ` Ludovic Brenta
2012-07-27 18:00 ` Patrick
2012-07-27 21:40 ` Patrick [this message]
2012-07-27 22:46 ` Ludovic Brenta
2012-07-28 0:06 ` Patrick
2012-07-28 1:25 ` Nasser M. Abbasi
2012-07-28 13:04 ` Patrick
2012-07-28 18:14 ` Ludovic Brenta
2012-07-28 18:14 ` it.marks.info
2012-07-31 14:27 ` awdorrin
2012-07-31 14:38 ` awdorrin
2012-07-31 14:56 ` awdorrin
2012-07-31 20:04 ` Ludovic Brenta
2012-08-02 18:28 ` awdorrin
2012-08-02 19:59 ` Ludovic Brenta
2012-08-06 12:36 ` awdorrin
2012-07-29 14:37 ` Oliver Kellogg
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox