class DiagnosticInfo
Declaration
class DiagnosticInfo { /* full declaration omitted */ };
Description
This is the base abstract class for diagnostic reporting in the backend. The print method must be overloaded by the subclasses to print a user-friendly message in the client of the backend (let us call it a frontend).
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:108
Member Variables
- private const int Kind
- Kind defines the kind of report this is about.
- private const llvm::DiagnosticSeverity Severity
- Severity gives the severity of the diagnostic.
Method Overview
- public DiagnosticInfo(int Kind, llvm::DiagnosticSeverity Severity)
- private virtual void anchor()
- public int getKind() const
- public llvm::DiagnosticSeverity getSeverity() const
- public virtual void print(llvm::DiagnosticPrinter & DP) const
- public virtual ~DiagnosticInfo()
Methods
¶DiagnosticInfo(int Kind,
llvm::DiagnosticSeverity Severity)
DiagnosticInfo(int Kind,
llvm::DiagnosticSeverity Severity)
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:117
Parameters
- int Kind
- llvm::DiagnosticSeverity Severity
¶virtual void anchor()
virtual void anchor()
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:115
¶int getKind() const
int getKind() const
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:122
¶llvm::DiagnosticSeverity getSeverity() const
llvm::DiagnosticSeverity getSeverity() const
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:123
¶virtual void print(
llvm::DiagnosticPrinter& DP) const
virtual void print(
llvm::DiagnosticPrinter& DP) const
Description
Print using the given \p DP a user-friendly message. This is the default message that will be printed to the user. It is used when the frontend does not directly take advantage of the information contained in fields of the subclasses. The printed message must not end with '.' nor start with a severity keyword.
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:131
Parameters
¶virtual ~DiagnosticInfo()
virtual ~DiagnosticInfo()
Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:120