]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostics: mark the JSON output format as deprecated
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 10 Oct 2024 01:26:09 +0000 (21:26 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 10 Oct 2024 01:26:09 +0000 (21:26 -0400)
commita4e4f2d22589a8565bebf906930bf6a536a81167
tree8c799d87b04a9f2eb422df4e2890f0d5314731eb
parent8d0de31c931ddacc03e8bd1ce6d89f517c62c7b3
diagnostics: mark the JSON output format as deprecated

The bulk of the documentation for -fdiagnostics-format= is taken up
by a description of the "json" format added in r9-4156-g478dd60ddcf177.

I don't plan to add any extra features to the "json" format; all my
future work on machine-readable GCC diagnostics is likely to be on the
SARIF output format (https://gcc.gnu.org/wiki/SARIF).

Hence users seeking machine-readable output from GCC should use SARIF.

This patch removes the long documentation of the format and describes it
as deprecated.

gcc/ChangeLog:
* doc/invoke.texi (fdiagnostics-format): Describe "json" et al as
deprecated, and remove the long description of the output format.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/doc/invoke.texi