LLVM 22.0.0git
llvm::DiagnosticLocation Class Reference

#include "llvm/IR/DiagnosticInfo.h"

Public Member Functions

 DiagnosticLocation ()=default
LLVM_ABI DiagnosticLocation (const DebugLoc &DL)
LLVM_ABI DiagnosticLocation (const DISubprogram *SP)
bool isValid () const
LLVM_ABI std::string getAbsolutePath () const
 Return the full path to the file.
LLVM_ABI StringRef getRelativePath () const
 Return the file name relative to the compilation directory.
unsigned getLine () const
unsigned getColumn () const

Detailed Description

Definition at line 329 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

◆ DiagnosticLocation() [1/3]

llvm::DiagnosticLocation::DiagnosticLocation ( )
default

References DL, and LLVM_ABI.

◆ DiagnosticLocation() [2/3]

DiagnosticLocation::DiagnosticLocation ( const DebugLoc & DL)

Definition at line 150 of file DiagnosticInfo.cpp.

References DL.

◆ DiagnosticLocation() [3/3]

DiagnosticLocation::DiagnosticLocation ( const DISubprogram * SP)

Definition at line 158 of file DiagnosticInfo.cpp.

Member Function Documentation

◆ getAbsolutePath()

std::string DiagnosticLocation::getAbsolutePath ( ) const

◆ getColumn()

unsigned llvm::DiagnosticLocation::getColumn ( ) const
inline

Definition at line 345 of file DiagnosticInfo.h.

◆ getLine()

unsigned llvm::DiagnosticLocation::getLine ( ) const
inline

Definition at line 344 of file DiagnosticInfo.h.

◆ getRelativePath()

StringRef DiagnosticLocation::getRelativePath ( ) const

Return the file name relative to the compilation directory.

Definition at line 167 of file DiagnosticInfo.cpp.

◆ isValid()

bool llvm::DiagnosticLocation::isValid ( ) const
inline

Definition at line 339 of file DiagnosticInfo.h.


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