diff options
author | Ghjuvan Lacambre <lacambre@adacore.com> | 2021-01-27 09:53:26 +0100 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-06-18 04:36:47 -0400 |
commit | 26373979deab7481b0503d86e80390ab65c65381 (patch) | |
tree | c43df107692a6f68fbde676154abce2af049d04e /gcc/ada/sem_ch5.adb | |
parent | 0becb0faaecc79df3de24bd5467b90cfd08a829a (diff) | |
download | gcc-26373979deab7481b0503d86e80390ab65c65381.zip gcc-26373979deab7481b0503d86e80390ab65c65381.tar.gz gcc-26373979deab7481b0503d86e80390ab65c65381.tar.bz2 |
[Ada] Implement basic support for -fdiagnostics-format=json
gcc/ada/
* back_end.adb (Scan_Back_End_Switches): Set Opt.JSON_Output to
True if -fdiagnostics-format=json option is found.
* back_end.ads (Scan_Compiler_Arguments): Mention
Opt.JSON_Output.
* errout.adb (Output_JSON_Message): New procedure.
(Output_Messages): If Opt.JSON_Output is True, print messages
with new Output_JSON_Message procedure.
* opt.ads: Declare JSON_Output variable.
* doc/gnat_ugn/building_executable_programs_with_gnat.rst:
Mention new -fdiagnostics-format option.
* gnat_ugn.texi: Regenerate.
Diffstat (limited to 'gcc/ada/sem_ch5.adb')
0 files changed, 0 insertions, 0 deletions