GCC Middle and Back End API Reference
|
#include <counters.h>
Public Member Functions | |
counters () | |
void | dump (FILE *out, int indent) const |
void DEBUG_FUNCTION | dump () const |
int | get_count (enum kind kind) const |
void | move_to (counters &dest) |
void | clear () |
Data Fields | |
int | m_count_for_kind [static_cast< size_t >(kind::last_diagnostic_kind)] |
A collection of counters of diagnostics, per-kind (e.g. "3 errors and 1 warning"), for use by both diagnostics::context and by diagnostics::buffer.
diagnostics::counters::counters | ( | ) |
void diagnostics::counters::clear | ( | ) |
References m_count_for_kind.
Referenced by diagnostics::context::clear_diagnostic_buffer(), counters(), and move_to().
|
inline |
References DEBUG_FUNCTION, and dump().
Referenced by dump().
void diagnostics::counters::dump | ( | FILE * | out, |
int | indent ) const |
|
inline |
References m_count_for_kind.
void diagnostics::counters::move_to | ( | counters & | dest | ) |
References clear(), counters(), i, diagnostics::last_diagnostic_kind, and m_count_for_kind.
Referenced by diagnostics::context::flush_diagnostic_buffer().
int diagnostics::counters::m_count_for_kind[static_cast< size_t >(kind::last_diagnostic_kind)] |
Referenced by clear(), dump(), get_count(), move_to(), and diagnostics::context::report_diagnostic().