LDBG_OS_IMPL

This macro is the core of the LDBG_OS() macros. It is used to print the debug output with the given stream, level, type, file, and line number.

Synopsis

Declared in <llvm/Support/DebugLog.h>

#define LDBG_OS_IMPL(TYPE_OR_LEVEL, LEVEL_OR_TYPE, CALLBACK, STREAM, FILE, LINE)

Parameters

NameDescription
TYPE_OR_LEVELDebug type when a string, or level when an integer (paired with LEVEL_OR_TYPE).
LEVEL_OR_TYPEDebug level when an integer, or type when a string (paired with TYPE_OR_LEVEL).
CALLBACKCallable invoked with the prefixed debug stream.
STREAMUnderlying raw_ostream that receives the output.
FILESource file name shown in the prefix.
LINESource line number shown in the prefix.