GCC Middle and Back End API Reference
diagnostic_counters Struct 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]
 

Detailed Description

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.   

Constructor & Destructor Documentation

◆ diagnostic_counters()

diagnostic_counters::diagnostic_counters ( )
struct diagnostic_counters.   

References clear().

Member Function Documentation

◆ clear()

◆ dump() [1/2]

void DEBUG_FUNCTION diagnostic_counters::dump ( ) const
inline

References dump().

Referenced by dump().

◆ dump() [2/2]

void diagnostic_counters::dump ( FILE * out,
int indent ) const

◆ get_count()

int diagnostic_counters::get_count ( diagnostic_t kind) const
inline

◆ move_to()

Field Documentation

◆ m_count_for_kind


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