diff options
author | Ghjuvan Lacambre <lacambre@adacore.com> | 2022-04-27 15:01:28 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-30 08:29:05 +0000 |
commit | a4db870e1b042ac6ab7ddaef6e2d3e32408578dd (patch) | |
tree | e85df6679b5babce37b96516d155e64cba4b9697 /gcc/c | |
parent | 8244b8034201bfb0609eaa33fe3a4a2518dfdb3d (diff) | |
download | gcc-a4db870e1b042ac6ab7ddaef6e2d3e32408578dd.zip gcc-a4db870e1b042ac6ab7ddaef6e2d3e32408578dd.tar.gz gcc-a4db870e1b042ac6ab7ddaef6e2d3e32408578dd.tar.bz2 |
[Ada] Add "option" field to GNAT's -fdiagnostics-format=json output
This enables better integration with tools that handle GNAT's output.
gcc/ada/
* erroutc.ads (Get_Warning_Option): New function returning the
option responsible for a warning if it exists.
* erroutc.adb (Get_Warning_Option): Likewise.
(Get_Warning_Tag): Rely on Get_Warning_Option when possible.
* errout.adb (Output_JSON_Message): Emit option field.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions