#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 nullptr). The log_user class keeps the reference-count of a logger up-to-date.
| ana::log_user::log_user | ( | logger * | logger | ) | 
Referenced by DISABLE_COPY_AND_ASSIGN().
| ana::log_user::~log_user | ( | ) | 
| 
 | private | 
References log_user().
| 
 | inline | 
A shortcut for ending a log line from a log_user, handling the common case where the underlying logger is nullptr via a no-op.
References m_logger.
Referenced by set_logger().
| 
 | inline | 
A shortcut for recording entry into a scope from a log_user, handling the common case where the underlying logger is nullptr via a no-op.
References m_logger.
Referenced by set_logger().
| 
 | inline | 
A shortcut for recording exit from a scope from a log_user, handling the common case where the underlying logger is nullptr via a no-op.
References m_logger.
Referenced by set_logger().
| 
 | inline | 
References m_logger.
| 
 | inline | 
References gcc_assert, get_logger_pp(), and m_logger.
Referenced by get_logger_pp().
| 
 | inline | 
| void ana::log_user::set_logger | ( | logger * | logger | ) | 
References ATTRIBUTE_GCC_DIAG, end_log_line(), enter_scope(), exit_scope(), and start_log_line().
| 
 | inline | 
A shortcut for starting a log line from a log_user, handling the common case where the underlying logger is nullptr via a no-op.
References m_logger.
Referenced by set_logger().
| 
 | private | 
Referenced by end_log_line(), enter_scope(), exit_scope(), get_logger(), get_logger_file(), get_logger_pp(), log(), and start_log_line().