summaryrefslogtreecommitdiff
path: root/gcc/ada/styleg.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2004-11-19 11:56:53 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2004-11-19 11:56:53 +0100
commitbc202b70061a5e8765d537d4222b25284b24361a (patch)
treebd2bdeb5f19ff29203c41b2c8b4fd854bcaa43aa /gcc/ada/styleg.ads
parent1d571f3b00a155910504a2b219c77b839aebbb16 (diff)
downloadgcc-bc202b70061a5e8765d537d4222b25284b24361a.tar.gz
errout.ads, errout.adb: (First_Sloc): New function
* errout.ads, errout.adb: (First_Sloc): New function * par-ch5.adb (P_Condition): Check for redundant parens is now a style check (-gnatyx) instead of being included as a redundant construct warning. * sem_ch6.adb: Change name Style_Check_Subprogram_Order to Style_Check_Order_Subprograms. * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads, stylesw.adb: Add Style_Check_Xtra_Parens * usage.adb: Add line for -gnatyx (check extra parens) * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx From-SVN: r90905
Diffstat (limited to 'gcc/ada/styleg.ads')
-rw-r--r--gcc/ada/styleg.ads6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/styleg.ads b/gcc/ada/styleg.ads
index 7f4e22b8b2d..bf5b1e144cd 100644
--- a/gcc/ada/styleg.ads
+++ b/gcc/ada/styleg.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 1992-2002 Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2004 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- --
@@ -132,6 +132,10 @@ package Styleg is
procedure Check_Vertical_Bar;
-- Called after scanning a vertical bar to check spacing
+ procedure Check_Xtra_Parens (Loc : Source_Ptr);
+ -- Called after scanning a conditional expression that has at least one
+ -- level of parentheses around the entire expression.
+
procedure No_End_Name (Name : Node_Id);
-- Called if an END is encountered where a name is allowed but not present.
-- The parameter is the node whose name is the name that is permitted in