diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2004-11-19 11:56:53 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2004-11-19 11:56:53 +0100 |
commit | bc202b70061a5e8765d537d4222b25284b24361a (patch) | |
tree | bd2bdeb5f19ff29203c41b2c8b4fd854bcaa43aa /gcc/ada/errout.ads | |
parent | 1d571f3b00a155910504a2b219c77b839aebbb16 (diff) | |
download | gcc-bc202b70061a5e8765d537d4222b25284b24361a.zip gcc-bc202b70061a5e8765d537d4222b25284b24361a.tar.gz gcc-bc202b70061a5e8765d537d4222b25284b24361a.tar.bz2 |
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/errout.ads')
-rw-r--r-- | gcc/ada/errout.ads | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ada/errout.ads b/gcc/ada/errout.ads index 5bf3311..ffc44bd 100644 --- a/gcc/ada/errout.ads +++ b/gcc/ada/errout.ads @@ -584,6 +584,12 @@ package Errout is -- Given a construct C, finds the first node in the construct, i.e. the -- one with the lowest Sloc value. This is useful in placing error msgs. + function First_Sloc (N : Node_Id) return Source_Ptr; + -- Given the node for an expression, return a source pointer value that + -- points to the start of the first token in the expression. In the case + -- where the expression is parenthesized, an attempt is made to include + -- the parentheses (i.e. to return the location of the initial paren). + procedure Purge_Messages (From : Source_Ptr; To : Source_Ptr) renames Erroutc.Purge_Messages; -- All error messages whose location is in the range From .. To (not |