LLVM API Documentation
#include <DiagnosticInfo.h>
Public Member Functions | |
DiagnosticInfoStackSize (const Function &Fn, unsigned StackSize, DiagnosticSeverity Severity=DS_Warning) | |
const Function & | getFunction () const |
unsigned | getStackSize () const |
void | print (DiagnosticPrinter &DP) const override |
Static Public Member Functions | |
static bool | classof (const DiagnosticInfo *DI) |
Diagnostic information for stack size reporting. This is basically a function and a size.
Definition at line 150 of file DiagnosticInfo.h.
llvm::DiagnosticInfoStackSize::DiagnosticInfoStackSize | ( | const Function & | Fn, |
unsigned | StackSize, | ||
DiagnosticSeverity | Severity = DS_Warning |
||
) | [inline] |
The
function that is concerned by this stack size diagnostic. The
computed stack size.
Definition at line 160 of file DiagnosticInfo.h.
static bool llvm::DiagnosticInfoStackSize::classof | ( | const DiagnosticInfo * | DI | ) | [inline, static] |
Definition at line 170 of file DiagnosticInfo.h.
References llvm::DK_StackSize, and llvm::DiagnosticInfo::getKind().
const Function& llvm::DiagnosticInfoStackSize::getFunction | ( | ) | const [inline] |
Definition at line 164 of file DiagnosticInfo.h.
Referenced by print().
unsigned llvm::DiagnosticInfoStackSize::getStackSize | ( | ) | const [inline] |
Definition at line 165 of file DiagnosticInfo.h.
Referenced by print().
void DiagnosticInfoStackSize::print | ( | DiagnosticPrinter & | DP | ) | const [override, virtual] |
Implements llvm::DiagnosticInfo.
Definition at line 112 of file DiagnosticInfo.cpp.
References getFunction(), and getStackSize().