LLVM  3.7.0
Public Member Functions | Static Public Member Functions | List of all members
llvm::DiagnosticInfoStackSize Class Reference

Diagnostic information for stack size reporting. More...

#include <DiagnosticInfo.h>

Inheritance diagram for llvm::DiagnosticInfoStackSize:
[legend]
Collaboration diagram for llvm::DiagnosticInfoStackSize:
[legend]

Public Member Functions

 DiagnosticInfoStackSize (const Function &Fn, unsigned StackSize, DiagnosticSeverity Severity=DS_Warning)
 The function that is concerned by this stack size diagnostic. More...
 
const FunctiongetFunction () const
 
unsigned getStackSize () const
 
void print (DiagnosticPrinter &DP) const override
 
- Public Member Functions inherited from llvm::DiagnosticInfo
 DiagnosticInfo (int Kind, DiagnosticSeverity Severity)
 
virtual ~DiagnosticInfo ()
 
int getKind () const
 
DiagnosticSeverity getSeverity () const
 

Static Public Member Functions

static bool classof (const DiagnosticInfo *DI)
 

Detailed Description

Diagnostic information for stack size reporting.

This is basically a function and a size.

Definition at line 157 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

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 167 of file DiagnosticInfo.h.

Member Function Documentation

static bool llvm::DiagnosticInfoStackSize::classof ( const DiagnosticInfo DI)
inlinestatic

Definition at line 177 of file DiagnosticInfo.h.

References llvm::DK_StackSize, and llvm::DiagnosticInfo::getKind().

const Function& llvm::DiagnosticInfoStackSize::getFunction ( ) const
inline

Definition at line 171 of file DiagnosticInfo.h.

Referenced by print().

unsigned llvm::DiagnosticInfoStackSize::getStackSize ( ) const
inline

Definition at line 172 of file DiagnosticInfo.h.

Referenced by print().

void DiagnosticInfoStackSize::print ( DiagnosticPrinter DP) const
overridevirtual
See Also
DiagnosticInfo::print.

Implements llvm::DiagnosticInfo.

Definition at line 113 of file DiagnosticInfo.cpp.

References getFunction(), and getStackSize().


The documentation for this class was generated from the following files: