|
LLVM
10.0.0
|
#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. More... | |
| StringRef | getRelativePath () const |
| Return the file name relative to the compilation directory. More... | |
| unsigned | getLine () const |
| unsigned | getColumn () const |
Definition at line 345 of file DiagnosticInfo.h.
|
default |
Definition at line 111 of file DiagnosticInfo.cpp.
References File.
| DiagnosticLocation::DiagnosticLocation | ( | const DISubprogram * | SP | ) |
Definition at line 119 of file DiagnosticInfo.cpp.
References File, and llvm::DIScope::getFile().
| std::string DiagnosticLocation::getAbsolutePath | ( | ) | const |
Return the full path to the file.
Definition at line 132 of file DiagnosticInfo.cpp.
References llvm::sys::path::append(), File, llvm::sys::path::is_absolute(), Name, llvm::sys::path::remove_leading_dotslash(), and llvm::StringRef::str().
|
inline |
Definition at line 361 of file DiagnosticInfo.h.
Referenced by toRemarkLocation().
|
inline |
Definition at line 360 of file DiagnosticInfo.h.
Referenced by toRemarkLocation().
| StringRef DiagnosticLocation::getRelativePath | ( | ) | const |
Return the file name relative to the compilation directory.
Definition at line 128 of file DiagnosticInfo.cpp.
References File.
Referenced by toRemarkLocation().
|
inline |
1.8.13