diff options
author | David Malcolm <dmalcolm@redhat.com> | 2024-06-21 18:20:38 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2024-06-21 18:20:38 -0400 |
commit | ccbcde5ec0e481e1ea775649d59691b6f5fcc5a1 (patch) | |
tree | c85d19c0ee9c144b542d73de8e02894e155950f2 /gcc/ada | |
parent | 4819dc7d4b84afa98881ffb8471cf19bc362221b (diff) | |
download | gcc-ccbcde5ec0e481e1ea775649d59691b6f5fcc5a1.zip gcc-ccbcde5ec0e481e1ea775649d59691b6f5fcc5a1.tar.gz gcc-ccbcde5ec0e481e1ea775649d59691b6f5fcc5a1.tar.bz2 |
diagnostics: remove duplicate copies of diagnostic_kind_text
No functional change intended.
gcc/ChangeLog:
* diagnostic-format-json.cc
(json_output_format::on_end_diagnostic): Use
get_diagnostic_kind_text rather than embedding a duplicate copy of
the table.
* diagnostic-format-sarif.cc
(make_rule_id_for_diagnostic_kind): Likewise.
* diagnostic.cc (get_diagnostic_kind_text): New.
* diagnostic.h (get_diagnostic_kind_text): New decl.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/ada')
0 files changed, 0 insertions, 0 deletions