23#ifndef ANALYZER_LOGGING_H
24#define ANALYZER_LOGGING_H
42 void log (
const char *fmt, ...)
155 void log (
const char *fmt, ...) const
245#define LOG_SCOPE(LOGGER) \
246 log_scope s (LOGGER, __PRETTY_FUNCTION__)
251#define LOG_FUNC(LOGGER) \
252 log_scope s (LOGGER, __func__)
254#define LOG_FUNC_1(LOGGER, FMT, A0) \
255 log_scope s (LOGGER, __func__, FMT, A0)
257#define LOG_FUNC_2(LOGGER, FMT, A0, A1) \
258 log_scope s (LOGGER, __func__, FMT, A0, A1)
260#define LOG_FUNC_3(LOGGER, FMT, A0, A1, A2) \
261 log_scope s (LOGGER, __func__, FMT, A0, A1, A2)
263#define LOG_FUNC_4(LOGGER, FMT, A0, A1, A2, A3) \
264 log_scope s (LOGGER, __func__, FMT, A0, A1, A2, A3)
Definition analyzer-logging.h:78
const char * m_name
Definition analyzer-logging.h:89
logger * m_logger
Definition analyzer-logging.h:88
~log_scope()
Definition analyzer-logging.h:133
DISABLE_COPY_AND_ASSIGN(log_scope)
log_scope(logger *logger, const char *name)
Definition analyzer-logging.h:102
Definition analyzer-logging.h:147
DISABLE_COPY_AND_ASSIGN(log_user)
logger * get_logger() const
Definition analyzer-logging.h:152
logger * m_logger
Definition analyzer-logging.h:180
void log(const char *fmt,...) const ATTRIBUTE_GCC_DIAG(2
Definition analyzer-logging.h:187
void enter_scope(const char *scope_name)
Definition analyzer-logging.h:225
void void start_log_line() const
Definition analyzer-logging.h:203
void set_logger(logger *logger)
void exit_scope(const char *scope_name)
Definition analyzer-logging.h:236
FILE * get_logger_file() const
Definition analyzer-logging.h:170
void end_log_line() const
Definition analyzer-logging.h:214
pretty_printer * get_logger_pp() const
Definition analyzer-logging.h:164
Definition analyzer-logging.h:34
void dec_indent()
Definition analyzer-logging.h:58
int m_indent_level
Definition analyzer-logging.h:68
pretty_printer * get_printer() const
Definition analyzer-logging.h:60
void void log_va_partial(const char *fmt, va_list *ap) ATTRIBUTE_GCC_DIAG(2
void log_partial(const char *fmt,...) ATTRIBUTE_GCC_DIAG(2
void log(const char *fmt,...) ATTRIBUTE_GCC_DIAG(2
DISABLE_COPY_AND_ASSIGN(logger)
FILE * get_file() const
Definition analyzer-logging.h:61
void enter_scope(const char *scope_name)
bool m_log_refcount_changes
Definition analyzer-logging.h:69
FILE * m_f_out
Definition analyzer-logging.h:67
int m_refcount
Definition analyzer-logging.h:66
void void void start_log_line()
logger(FILE *f_out, int flags, int verbosity, const pretty_printer &reference_pp)
void incref(const char *reason)
void void log_va(const char *fmt, va_list *ap) ATTRIBUTE_GCC_DIAG(2
pretty_printer * m_pp
Definition analyzer-logging.h:70
void inc_indent()
Definition analyzer-logging.h:57
void decref(const char *reason)
void void void end_log_line()
void void exit_scope(const char *scope_name)
Definition pretty-print.h:238
#define ATTRIBUTE_GCC_DIAG(m, n)
Definition diagnostic-core.h:67
Definition access-diagram.h:30
static void const char va_list ap
Definition read-md.cc:205
#define NULL
Definition system.h:50
#define gcc_assert(EXPR)
Definition system.h:821