]> gcc.gnu.org Git - gcc.git/commit
[Ada] Enable using absolute paths in -fdiagnostics-format=json output
authorGhjuvan Lacambre <lacambre@adacore.com>
Fri, 6 May 2022 16:53:57 +0000 (18:53 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 1 Jun 2022 08:43:19 +0000 (08:43 +0000)
commit65818fc9550ffda7724504e38c8d2005f6c4f2ca
treee48f3613a28644931423c1443b50b2459dd197d0
parent66f2a0def548b7f2e4edb46e50fc0b72e84532cc
[Ada] Enable using absolute paths in -fdiagnostics-format=json output

This commit makes GNAT use absolute paths in -fdiagnostics-format=json's
output when -gnatef is present on the command line. This makes life
easier for tools that ingest GNAT's output.

gcc/ada/

* doc/gnat_ugn/building_executable_programs_with_gnat.rst:
Document new behavior.
* errout.adb (Write_JSON_Location): Output absolute paths when
needed.
* switch-c.adb (Scan_Front_End_Switches): Update -gnatef
comment.
* usage.adb (Usage): Update description of -gnatef.
* gnat_ugn.texi: Regenerate.
gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst
gcc/ada/errout.adb
gcc/ada/gnat_ugn.texi
gcc/ada/switch-c.adb
gcc/ada/usage.adb
This page took 0.059139 seconds and 5 git commands to generate.