]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostics: eliminate diagnostic_kind_count
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 6 Nov 2023 19:28:41 +0000 (14:28 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Mon, 6 Nov 2023 19:28:41 +0000 (14:28 -0500)
commit579bb65cdd35a421d731b64ecc8a31064abc73a9
treee330ce4cf9750be549b6e316200613f9d42b2658
parent7e3c58bfc1d957e48faf0752758da0fed811ed58
diagnostics: eliminate diagnostic_kind_count

No functional change intended.

gcc/ChangeLog:
* diagnostic.cc (diagnostic_context::check_max_errors): Replace
uses of diagnostic_kind_count with simple field acesss.
(diagnostic_context::report_diagnostic): Likewise.
(diagnostic_text_output_format::~diagnostic_text_output_format):
Replace use of diagnostic_kind_count with
diagnostic_context::diagnostic_count.
* diagnostic.h (diagnostic_kind_count): Delete.
(errorcount): Replace use of diagnostic_kind_count with
diagnostic_context::diagnostic_count.
(warningcount): Likewise.
(werrorcount): Likewise.
(sorrycount): Likewise.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/diagnostic.cc
gcc/diagnostic.h