aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/par-ch5.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@adacore.com>2023-01-19 08:43:47 +0000
committerMarc Poulhiès <poulhies@adacore.com>2023-05-16 10:30:57 +0200
commitb54fd57a1b3429542286c3bea7c38cce931064f7 (patch)
tree0a528f921767472cb0c2cb31c279c5bf4bcd593a /gcc/ada/par-ch5.adb
parent387e147cf513e4aa703e9c2f4eb417af986f16ba (diff)
downloadgcc-b54fd57a1b3429542286c3bea7c38cce931064f7.zip
gcc-b54fd57a1b3429542286c3bea7c38cce931064f7.tar.gz
gcc-b54fd57a1b3429542286c3bea7c38cce931064f7.tar.bz2
ada: Add tags on style messages
Similar to tags on warnings [-gnatwx], we add tags on style messages [-gnatyx] when -gnatw.d is enabled. gcc/ada/ * errout.ads: Update comment. * errout.adb (Skip_Msg_Insertion_Warning): Update to take e.g. -gnatyM into account. * erroutc.adb (Get_Warning_Option, Get_Warning_Tag) (Prescan_Message): Add support for Style tags. * par-ch5.adb, par-ch6.adb, par-ch7.adb, par-endh.adb, par-util.adb, style.adb, styleg.adb: Set tag on all style messages.
Diffstat (limited to 'gcc/ada/par-ch5.adb')
-rw-r--r--gcc/ada/par-ch5.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/par-ch5.adb b/gcc/ada/par-ch5.adb
index 418547b..be821f7 100644
--- a/gcc/ada/par-ch5.adb
+++ b/gcc/ada/par-ch5.adb
@@ -1196,7 +1196,7 @@ package body Ch5 is
and then Start_Column /= Scopes (Scope.Last).Ecol
then
Error_Msg_Col := Scopes (Scope.Last).Ecol;
- Error_Msg_SC ("(style) this token should be@");
+ Error_Msg_SC ("(style) this token should be@?l?");
end if;
end Check_If_Column;
@@ -2206,7 +2206,7 @@ package body Ch5 is
and then Token_Is_At_Start_Of_Line
and then Start_Column /= Error_Msg_Col
then
- Error_Msg_SC ("(style) BEGIN in wrong column, should be@");
+ Error_Msg_SC ("(style) BEGIN in wrong column, should be@?l?");
else
Scopes (Scope.Last).Ecol := Start_Column;