LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::DiagnosticInfoMisExpect Class Reference

Diagnostic information for MisExpect analysis. More...

#include "llvm/IR/DiagnosticInfo.h"

Inheritance diagram for llvm::DiagnosticInfoMisExpect:
Inheritance graph
[legend]

Public Member Functions

 DiagnosticInfoMisExpect (const Instruction *Inst, Twine &Msg)
 
void print (DiagnosticPrinter &DP) const override
 
const TwinegetMsg () const
 
- Public Member Functions inherited from llvm::DiagnosticInfoWithLocationBase
 DiagnosticInfoWithLocationBase (enum DiagnosticKind Kind, enum DiagnosticSeverity Severity, const Function &Fn, const DiagnosticLocation &Loc)
 Fn is the function where the diagnostic is being emitted.
 
bool isLocationAvailable () const
 Return true if location information is available for this diagnostic.
 
std::string getLocationStr () const
 Return a string with the location information for this diagnostic in the format "file:line:col".
 
void getLocation (StringRef &RelativePath, unsigned &Line, unsigned &Column) const
 Return location information for this diagnostic in three parts: the relative source file path, line number and column.
 
std::string getAbsolutePath () const
 Return the absolute path tot the file.
 
const FunctiongetFunction () const
 
DiagnosticLocation getLocation () const
 
- Public Member Functions inherited from llvm::DiagnosticInfo
 DiagnosticInfo (int Kind, DiagnosticSeverity Severity)
 
virtual ~DiagnosticInfo ()=default
 
int getKind () const
 
DiagnosticSeverity getSeverity () const
 
virtual void print (DiagnosticPrinter &DP) const =0
 Print using the given DP a user-friendly message.
 

Static Public Member Functions

static bool classof (const DiagnosticInfo *DI)
 

Detailed Description

Diagnostic information for MisExpect analysis.

Definition at line 1036 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

◆ DiagnosticInfoMisExpect()

DiagnosticInfoMisExpect::DiagnosticInfoMisExpect ( const Instruction Inst,
Twine Msg 
)

Definition at line 409 of file DiagnosticInfo.cpp.

Member Function Documentation

◆ classof()

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

Definition at line 1043 of file DiagnosticInfo.h.

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

◆ getMsg()

const Twine & llvm::DiagnosticInfoMisExpect::getMsg ( ) const
inline

Definition at line 1047 of file DiagnosticInfo.h.

Referenced by print().

◆ print()

void DiagnosticInfoMisExpect::print ( DiagnosticPrinter DP) const
overridevirtual

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