|
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 330 of file DiagnosticInfo.h.
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::sys::path::is_absolute(), llvm::sys::path::remove_leading_dotslash(), and llvm::StringRef::str().
|
inline |
Definition at line 346 of file DiagnosticInfo.h.
|
inline |
Definition at line 345 of file DiagnosticInfo.h.
| StringRef DiagnosticLocation::getRelativePath | ( | ) | const |
Return the file name relative to the compilation directory.
Definition at line 167 of file DiagnosticInfo.cpp.
|
inline |
Definition at line 340 of file DiagnosticInfo.h.