GCC Middle and Back End API Reference
diagnostics::counters Struct 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)]

Detailed Description

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.   

Constructor & Destructor Documentation

◆ counters()

diagnostics::counters::counters ( )
struct diagnostics::counters.   

References clear().

Referenced by move_to().

Member Function Documentation

◆ clear()

void diagnostics::counters::clear ( )

◆ dump() [1/2]

void DEBUG_FUNCTION diagnostics::counters::dump ( ) const
inline

References DEBUG_FUNCTION, and dump().

Referenced by dump().

◆ dump() [2/2]

◆ get_count()

int diagnostics::counters::get_count ( enum kind kind) const
inline

References m_count_for_kind.

◆ move_to()

void diagnostics::counters::move_to ( counters & dest)

Field Documentation

◆ m_count_for_kind

int diagnostics::counters::m_count_for_kind[static_cast< size_t >(kind::last_diagnostic_kind)]

The documentation for this struct was generated from the following files: