LLVM 22.0.0git
|
#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 |
Definition at line 329 of file DiagnosticInfo.h.
|
default |
Definition at line 150 of file DiagnosticInfo.cpp.
References DL.
DiagnosticLocation::DiagnosticLocation | ( | const DISubprogram * | SP | ) |
Definition at line 158 of file DiagnosticInfo.cpp.
std::string DiagnosticLocation::getAbsolutePath | ( | ) | const |
Return the full path to the file.
Definition at line 171 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 345 of file DiagnosticInfo.h.
Referenced by llvm::DiagnosticInfoWithLocationBase::getLocation().
|
inline |
Definition at line 344 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 167 of file DiagnosticInfo.cpp.
References llvm::DIScope::getFilename().
Referenced by llvm::DiagnosticInfoWithLocationBase::getLocation().
|
inline |
Definition at line 339 of file DiagnosticInfo.h.