GCC Middle and Back End API Reference
|
#include <diagnostic.h>
Public Member Functions | |
diagnostic_counters () | |
void | dump (FILE *out, int indent) const |
void DEBUG_FUNCTION | dump () const |
int | get_count (diagnostic_t kind) const |
void | move_to (diagnostic_counters &dest) |
void | clear () |
Data Fields | |
int | m_count_for_kind [DK_LAST_DIAGNOSTIC_KIND] |
A collection of counters of diagnostics, per-kind (e.g. "3 errors and 1 warning"), for use by both diagnostic_context and by diagnostic_buffer.
diagnostic_counters::diagnostic_counters | ( | ) |
struct diagnostic_counters.
References clear().
void diagnostic_counters::clear | ( | ) |
References m_count_for_kind.
Referenced by diagnostic_context::clear_diagnostic_buffer(), diagnostic_counters(), diagnostic_context::initialize(), and move_to().
|
inline |
void diagnostic_counters::dump | ( | FILE * | out, |
int | indent ) const |
References DK_LAST_DIAGNOSTIC_KIND, get_diagnostic_kind_text(), i, m_count_for_kind, and none.
Referenced by diagnostic_buffer::dump(), and diagnostic_context::dump().
|
inline |
References m_count_for_kind.
Referenced by diagnostic_buffer::diagnostic_count(), and diagnostic_context::diagnostic_count().
void diagnostic_counters::move_to | ( | diagnostic_counters & | dest | ) |
References clear(), DK_LAST_DIAGNOSTIC_KIND, i, and m_count_for_kind.
Referenced by diagnostic_context::flush_diagnostic_buffer(), and diagnostic_buffer::move_to().
int diagnostic_counters::m_count_for_kind[DK_LAST_DIAGNOSTIC_KIND] |