comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
To: <comp.lang.ada@ada.eu.org>
Cc: <simon@pushface.org>
Subject: Re: avl tree - booch components
Date: Wed, 12 Sep 2001 04:02:48 -0500
Date: 2001-09-12T04:02:48-05:00	[thread overview]
Message-ID: <mailman.1000285333.5844.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: x7vr8tes2k1.fsf@smaug.pushface.org

Here is the relevant information:

pragma Style_Checks
Syntax:
pragma Style_Checks (string_LITERAL | ALL_CHECKS | On | Off [, LOCAL_NAME]);

This pragma is used in conjunction with compiler switches to control the built
in style checking provided by GNAT. The compiler switches, if set provide an
initial setting for the switches, and this pragma may be used to modify these
settings, or the settings may be provided entirely by the use of the pragma.
This pragma can be used anywhere that a pragma is legal, including use as a
configuration pragma (including use in the `gnat.adc' file). The form with a
string literal specifies which style options are to be activated. These are
additive, so they apply in addition to any previously set style check options.
The codes for the options are the same as those used in the -gnaty switch on
the gcc or gnatmake line. For example the following two methods can be used to
enable layout checking:
pragma Style_Checks ("l");
gcc -c -gnatyl ...

The form ALL_CHECKS activates all checks (its use is equivalent to the use of
the gnaty switch with no options. See GNAT User's Guide for details. The forms
with Off and On can be used to temporarily disable style checks as shown in
the following example:
pragma Style_Checks ("k"); -- requires keywords in lower case
pragma Style_Checks (Off); -- turn off style checks
NULL;                      -- this will not generate an error message
pragma Style_Checks (On);  -- turn style checks back on
NULL;                      -- this will generate an error message

Finally the two argument form is allowed only if the first argument is On or
Off. The effect is to turn of semantic style checks for the specified entity,
as shown in the following example:
pragma Style_Checks ("r"); -- require consistency of identifier casing
Arg : Integer;
Rf1 : Integer := ARG;      -- incrrect, wrong case
pragma Style_Checks (Off, Arg);
Rf2 : Integer := ARG;      -- OK, no error


----- Original Message -----
From: "Simon Wright" <simon@pushface.org>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: September 11, 2001 12:45 AM
Subject: Re: avl tree - booch components


Pascal Obry <p.obry@wanadoo.fr> writes:

> I don't have the info at hand but I think that there is a pragma to
> enable/disable the syle checks. Just put that arround the CVS $Id$
> line. Should fix the problem...

Nor do I, but when I tried it I got the strong impression that you can
turn checks On but not Off.
_______________________________________________
comp.lang.ada mailing list
comp.lang.ada@ada.eu.org
http://ada.eu.org/mailman/listinfo/comp.lang.ada






  reply	other threads:[~2001-09-12  9:02 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-07  8:16 avl tree - booch components Tony Gair
2001-09-07 11:47 ` Des Walker
2001-09-07 14:51   ` Simon Wright
2001-09-07 22:04     ` Ehud Lamm
2001-09-07 23:59     ` Des Walker
2001-09-08 13:58       ` Tony Gair
2001-09-09  8:49 ` Dave Parsons
2001-09-09 18:27   ` Simon Wright
2001-09-09 19:22     ` Simon Wright
2001-09-12  7:48       ` Dave Parsons
2001-09-09 21:01     ` Dave Parsons
2001-09-10  6:59     ` Dave Parsons
2001-09-26 14:00       ` Tony Gair
2001-09-10  6:59     ` Dave Parsons
2001-09-10 16:21     ` Stephen Leake
2001-09-10 19:18       ` Pascal Obry
2001-09-11  5:45         ` Simon Wright
2001-09-12  9:02           ` David C. Hoos, Sr. [this message]
2001-09-12 10:37             ` Florian Weimer
2001-09-13  5:51               ` Simon Wright
2001-09-11  5:53       ` Simon Wright
2001-09-12  9:10         ` David C. Hoos, Sr.
2001-09-12 14:42           ` Warren W. Gay VE3WWG
2001-09-13  5:57             ` Simon Wright
2001-09-13 13:49             ` Georg Bauhaus
2001-09-13 22:12               ` Jeffrey Carter
2001-09-14 13:38                 ` Warren W. Gay VE3WWG
2001-09-14 14:54                   ` Simon Wright
2001-09-14 16:47                     ` Warren W. Gay VE3WWG
2001-09-14 13:59                 ` Marin David Condic
2001-09-14 14:08                   ` Marin David Condic
2001-09-14 16:50                     ` Warren W. Gay VE3WWG
2002-02-25 14:04     ` Dave Parsons
2002-02-26  1:05       ` Matthew Heaney
2001-09-10 21:52 ` Jeffrey D. Cherry
2001-09-10 21:53 ` Jeffrey D. Cherry
replies disabled

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