aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/stylesw.adb
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2006-02-15 10:42:27 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2006-02-15 10:42:27 +0100
commit4f73f89c47d52ef4575a3a553bdc1440959465db (patch)
tree60971654468700fd58602c5c228eb29285ac9c3f /gcc/ada/stylesw.adb
parent76346895e79e6849880261fbfc2cababb0382367 (diff)
downloadgcc-4f73f89c47d52ef4575a3a553bdc1440959465db.zip
gcc-4f73f89c47d52ef4575a3a553bdc1440959465db.tar.gz
gcc-4f73f89c47d52ef4575a3a553bdc1440959465db.tar.bz2
par-ch6.adb, [...]: Implement -gnatyI switch (MODE_IN)
2006-02-13 Robert Dewar <dewar@adacore.com> * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb, stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch (MODE_IN) From-SVN: r111081
Diffstat (limited to 'gcc/ada/stylesw.adb')
-rw-r--r--gcc/ada/stylesw.adb7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ada/stylesw.adb b/gcc/ada/stylesw.adb
index 4368372..e1eda44 100644
--- a/gcc/ada/stylesw.adb
+++ b/gcc/ada/stylesw.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2005, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2006, 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- --
@@ -49,6 +49,7 @@ package body Stylesw is
Style_Check_Layout := False;
Style_Check_Max_Line_Length := False;
Style_Check_Max_Nesting_Level := False;
+ Style_Check_Mode_In := False;
Style_Check_Order_Subprograms := False;
Style_Check_Pragma_Casing := False;
Style_Check_References := False;
@@ -115,6 +116,7 @@ package body Stylesw is
Add ('f', Style_Check_Form_Feeds);
Add ('h', Style_Check_Horizontal_Tabs);
Add ('i', Style_Check_If_Then_Layout);
+ Add ('I', Style_Check_Mode_In);
Add ('k', Style_Check_Keyword_Casing);
Add ('l', Style_Check_Layout);
Add ('n', Style_Check_Standard);
@@ -249,6 +251,9 @@ package body Stylesw is
when 'i' =>
Style_Check_If_Then_Layout := True;
+ when 'I' =>
+ Style_Check_Mode_In := True;
+
when 'k' =>
Style_Check_Keyword_Casing := True;