diff options
author | Robert Dewar <dewar@adacore.com> | 2008-04-08 08:56:20 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2008-04-08 08:56:20 +0200 |
commit | 3017937417e39615cb08ed5f4f106f8969bcf691 (patch) | |
tree | 62d6b606bf60997a81d50f9571f896bfeab89386 /gcc/ada/stylesw.ads | |
parent | 57238335539655345a06f3d557fb2a8e1c08be25 (diff) | |
download | gcc-3017937417e39615cb08ed5f4f106f8969bcf691.zip gcc-3017937417e39615cb08ed5f4f106f8969bcf691.tar.gz gcc-3017937417e39615cb08ed5f4f106f8969bcf691.tar.bz2 |
stylesw.adb: Implement -gnaty + - y options
2008-04-08 Robert Dewar <dewar@adacore.com>
* stylesw.adb: Implement -gnaty + - y options
(Set_GNAT_Style_Check_Options): Includ I in style check string
* stylesw.ads: Add comments for new style switch options
From-SVN: r134055
Diffstat (limited to 'gcc/ada/stylesw.ads')
-rw-r--r-- | gcc/ada/stylesw.ads | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/ada/stylesw.ads b/gcc/ada/stylesw.ads index 61a22fe..27c92d5 100644 --- a/gcc/ada/stylesw.ads +++ b/gcc/ada/stylesw.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 1992-2007, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2008, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -269,7 +269,7 @@ package Stylesw is procedure Set_Default_Style_Check_Options; -- This procedure is called to set the default style checking options in - -- response to a -gnaty switch with no suboptions. + -- response to a -gnaty switch with no suboptions or from -gnatyy. procedure Set_GNAT_Style_Check_Options; -- This procedure is called to set the default style checking options for @@ -286,7 +286,8 @@ package Stylesw is -- This procedure is called to set the style check options that correspond -- to the characters in the given Options string. If all options are valid, -- they are set in an additive manner: any previous options are retained - -- unless overridden. + -- unless overridden, unless a minus is encountered, and then subsequent + -- style switches are subtracted from the current set. -- -- If all options given are valid, then OK is True, Err_Col is set to -- Options'Last + 1, and Style_Msg_Buf/Style_Msg_Len are unchanged. |