]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostics: add HTML output format as a plugin [PR116792]
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 20 Sep 2024 22:51:56 +0000 (18:51 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 20 Sep 2024 22:51:56 +0000 (18:51 -0400)
commit48261bd26df624f0b906600fb0ef6864c7a7f895
tree37c6c97be8c76e1be9a8ba9b0fc99b9d76f546a5
parent39f7703fffee0c1a8aa999b29ae52b2a31903715
diagnostics: add HTML output format as a plugin [PR116792]

This patch adds an experimental diagnostics output format that
writes HTML.  It isn't ready yet for end-users, but seems worth
keeping in the tree as I refactor the diagnostics subsystem, to
ensure that this code still builds, and to verify that it's possible to
implement new diagnostic output formats via GCC plugins. Hence
this patch merely adds it to the testsuite as an example of a GCC
plugin, rather than exposing it as a feature for end-users.

gcc/testsuite/ChangeLog:
PR other/116792
* gcc.dg/plugin/diagnostic-test-xhtml-1.c: New test.
* gcc.dg/plugin/diagnostic_plugin_xhtml_format.c: New test plugin.
* gcc.dg/plugin/plugin.exp (plugin_test_list): Add the above.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/testsuite/gcc.dg/plugin/diagnostic-test-xhtml-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/plugin/diagnostic_plugin_xhtml_format.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/plugin/plugin.exp