GCC Middle and Back End API Reference
|
#include <analyzer-logging.h>
Public Member Functions | |
log_user (logger *logger) | |
~log_user () | |
logger * | get_logger () const |
void | set_logger (logger *logger) |
void | log (const char *fmt,...) const ATTRIBUTE_GCC_DIAG(2 |
void void | start_log_line () const |
void | end_log_line () const |
void | enter_scope (const char *scope_name) |
void | exit_scope (const char *scope_name) |
pretty_printer * | get_logger_pp () const |
FILE * | get_logger_file () const |
Private Member Functions | |
DISABLE_COPY_AND_ASSIGN (log_user) | |
Private Attributes | |
logger * | m_logger |
A log_user is something that potentially uses a logger (which could be NULL). The log_user class keeps the reference-count of a logger up-to-date.
ana::log_user::log_user | ( | logger * | logger | ) |
ana::log_user::~log_user | ( | ) |
|
private |
|
inline |
A shortcut for ending a log line from a log_user, handling the common case where the underlying logger is NULL via a no-op.
References ana::logger::end_log_line(), and m_logger.
|
inline |
A shortcut for recording entry into a scope from a log_user, handling the common case where the underlying logger is NULL via a no-op.
References ana::logger::enter_scope(), and m_logger.
|
inline |
A shortcut for recording exit from a scope from a log_user, handling the common case where the underlying logger is NULL via a no-op.
References ana::logger::exit_scope(), and m_logger.
|
inline |
References m_logger.
Referenced by ana::exploded_graph::get_logger(), and ana::impl_region_model_context::get_logger().
|
inline |
References ana::logger::get_file(), m_logger, and NULL.
|
inline |
References gcc_assert, ana::logger::get_printer(), and m_logger.
|
inline |
A shortcut for calling log from a log_user, handling the common case where the underlying logger is NULL via a no-op.
References ap, ana::logger::log_va(), and m_logger.
void ana::log_user::set_logger | ( | logger * | logger | ) |
|
inline |
A shortcut for starting a log line from a log_user, handling the common case where the underlying logger is NULL via a no-op.
References m_logger, and ana::logger::start_log_line().
|
private |
Referenced by end_log_line(), enter_scope(), exit_scope(), get_logger(), get_logger_file(), get_logger_pp(), log(), and start_log_line().