[Ada] Display source code pointing at locations in messages for GNATprove
authorYannick Moy <moy@adacore.com>
Fri, 10 Jul 2020 14:52:03 +0000 (16:52 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 20 Oct 2020 07:21:32 +0000 (03:21 -0400)
commitbe273749fa010ad65af1eba98875c7383295a750
treee6767851d18ffd0b32664b18e8f1952cc2f0f9c2
parentbc60bb5eb9b18315b1af7ffa408969690720f8b1
[Ada] Display source code pointing at locations in messages for GNATprove

gcc/ada/

* errout.adb: (Error_Msg-Internal): Pass the location for a line
insertion if any in the message.
(Output_Messages: Add display of source code lines if -gnatdF is
set.
(Write_Source_Code_Line): Code clean up.
* erroutc.adb (Prescan_Message): Apply prescan for continuation
lines when -gnatdF is set, and record presence of line
insertion.
* erroutc.ads (Has_Insertion_Line): New global for prescan.
(Error_Msg_Object): Add field to record line insertion if
present.
* errutil.adb (Error_Msg): Pass no location for Insertion_Sloc.
gcc/ada/errout.adb
gcc/ada/erroutc.adb
gcc/ada/erroutc.ads
gcc/ada/errutil.adb