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

Diagnostic information for SMDiagnostic reporting. More...

#include "llvm/IR/DiagnosticInfo.h"

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

Public Member Functions

 DiagnosticInfoSrcMgr (const SMDiagnostic &Diagnostic, StringRef ModName, bool InlineAsmDiag=true, uint64_t LocCookie=0)
 
StringRef getModuleName () const
 
bool isInlineAsmDiag () const
 
const SMDiagnosticgetSMDiag () const
 
uint64_t getLocCookie () const
 
void print (DiagnosticPrinter &DP) const override
 Print using the given DP a user-friendly message.
 
- 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 SMDiagnostic reporting.

Definition at line 1162 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

◆ DiagnosticInfoSrcMgr()

llvm::DiagnosticInfoSrcMgr::DiagnosticInfoSrcMgr ( const SMDiagnostic Diagnostic,
StringRef  ModName,
bool  InlineAsmDiag = true,
uint64_t  LocCookie = 0 
)
inline

Definition at line 1171 of file DiagnosticInfo.h.

Member Function Documentation

◆ classof()

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

Definition at line 1183 of file DiagnosticInfo.h.

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

◆ getLocCookie()

uint64_t llvm::DiagnosticInfoSrcMgr::getLocCookie ( ) const
inline

Definition at line 1180 of file DiagnosticInfo.h.

◆ getModuleName()

StringRef llvm::DiagnosticInfoSrcMgr::getModuleName ( ) const
inline

Definition at line 1177 of file DiagnosticInfo.h.

◆ getSMDiag()

const SMDiagnostic & llvm::DiagnosticInfoSrcMgr::getSMDiag ( ) const
inline

Definition at line 1179 of file DiagnosticInfo.h.

◆ isInlineAsmDiag()

bool llvm::DiagnosticInfoSrcMgr::isInlineAsmDiag ( ) const
inline

Definition at line 1178 of file DiagnosticInfo.h.

◆ print()

void DiagnosticInfoSrcMgr::print ( DiagnosticPrinter DP) const
overridevirtual

Print using the given 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.

Implements llvm::DiagnosticInfo.

Definition at line 384 of file DiagnosticInfo.cpp.


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