LLVM 20.0.0git
|
#include "llvm/IR/DiagnosticInfo.h"
Public Member Functions | |
DiagnosticLocation ()=default | |
DiagnosticLocation (const DebugLoc &DL) | |
DiagnosticLocation (const DISubprogram *SP) | |
bool | isValid () const |
std::string | getAbsolutePath () const |
Return the full path to the file. | |
StringRef | getRelativePath () const |
Return the file name relative to the compilation directory. | |
unsigned | getLine () const |
unsigned | getColumn () const |
Definition at line 320 of file DiagnosticInfo.h.
|
default |
Definition at line 145 of file DiagnosticInfo.cpp.
References DL.
DiagnosticLocation::DiagnosticLocation | ( | const DISubprogram * | SP | ) |
Definition at line 153 of file DiagnosticInfo.cpp.
References llvm::DIScope::getFile().
std::string DiagnosticLocation::getAbsolutePath | ( | ) | const |
Return the full path to the file.
Definition at line 166 of file DiagnosticInfo.cpp.
References llvm::sys::path::append(), llvm::DIScope::getDirectory(), llvm::DIScope::getFilename(), llvm::sys::path::is_absolute(), Name, llvm::sys::path::remove_leading_dotslash(), and llvm::StringRef::str().
Referenced by llvm::DiagnosticInfoWithLocationBase::getAbsolutePath().
|
inline |
Definition at line 336 of file DiagnosticInfo.h.
Referenced by llvm::DiagnosticInfoWithLocationBase::getLocation().
|
inline |
Definition at line 335 of file DiagnosticInfo.h.
Referenced by llvm::DiagnosticInfoOptimizationBase::Argument::Argument(), and llvm::DiagnosticInfoWithLocationBase::getLocation().
StringRef DiagnosticLocation::getRelativePath | ( | ) | const |
Return the file name relative to the compilation directory.
Definition at line 162 of file DiagnosticInfo.cpp.
References llvm::DIScope::getFilename().
Referenced by llvm::DiagnosticInfoWithLocationBase::getLocation().
|
inline |
Definition at line 330 of file DiagnosticInfo.h.
Referenced by llvm::DiagnosticInfoWithLocationBase::isLocationAvailable().