GCC Middle and Back End API Reference
|
#include <logging.h>
Public Member Functions | |
logger (output_file outfile) | |
void | log_printf (const char *fmt,...) __attribute__((__format__(printf |
void void | log_bool_return (const char *function_name, bool retval) |
void | emit_indent () const |
void | emit_newline () const |
FILE * | get_stream () const |
int | get_indent () const |
void | inc_depth () |
void | dec_depth () |
Private Attributes | |
output_file | m_outfile |
int | m_log_depth |
A class for emitting a temporal log of what the diagnostics subsystem is doing, for debugging. We can't use pretty_printer here as we could potentially be debugging pretty-printing itself.
diagnostics::logging::logger::logger | ( | output_file | outfile | ) |
References m_log_depth, and m_outfile.
|
inline |
References m_log_depth.
void diagnostics::logging::logger::emit_indent | ( | ) | const |
Emit indentation to OUTFILE for the start of a log line.
References get_indent(), and get_stream().
Referenced by log_printf().
void diagnostics::logging::logger::emit_newline | ( | ) | const |
References fputc(), and get_stream().
Referenced by log_printf().
|
inline |
References m_log_depth.
Referenced by emit_indent().
|
inline |
References m_outfile.
Referenced by emit_indent(), emit_newline(), and log_printf().
|
inline |
References m_log_depth.
void diagnostics::logging::logger::log_bool_return | ( | const char * | function_name, |
bool | retval ) |
References function_name(), and log_printf().
void diagnostics::logging::logger::log_printf | ( | const char * | fmt, |
... ) |
References ap, emit_indent(), emit_newline(), get_stream(), and vfprintf().
Referenced by log_bool_return().
|
private |
Referenced by dec_depth(), get_indent(), inc_depth(), and logger().
|
private |
Referenced by get_stream(), and logger().