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 298 of file DiagnosticInfo.h.
|
default |
Definition at line 113 of file DiagnosticInfo.cpp.
References DL.
DiagnosticLocation::DiagnosticLocation | ( | const DISubprogram * | SP | ) |
Definition at line 121 of file DiagnosticInfo.cpp.
References llvm::DIScope::getFile().
std::string DiagnosticLocation::getAbsolutePath | ( | ) | const |
Return the full path to the file.
Definition at line 134 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 314 of file DiagnosticInfo.h.
Referenced by llvm::DiagnosticInfoWithLocationBase::getLocation().
|
inline |
Definition at line 313 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 130 of file DiagnosticInfo.cpp.
References llvm::DIScope::getFilename().
Referenced by llvm::DiagnosticInfoWithLocationBase::getLocation().
|
inline |
Definition at line 308 of file DiagnosticInfo.h.
Referenced by llvm::DiagnosticInfoWithLocationBase::isLocationAvailable().