LLVM
8.0.1
|
#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 344 of file DiagnosticInfo.h.
|
default |
Definition at line 112 of file DiagnosticInfo.cpp.
References llvm::ARMBuildAttrs::File.
DiagnosticLocation::DiagnosticLocation | ( | const DISubprogram * | SP | ) |
Definition at line 120 of file DiagnosticInfo.cpp.
References llvm::ARMBuildAttrs::File, and llvm::DIScope::getFile().
std::string DiagnosticLocation::getAbsolutePath | ( | ) | const |
Return the full path to the file.
Definition at line 133 of file DiagnosticInfo.cpp.
References llvm::sys::path::append(), llvm::ARMBuildAttrs::File, llvm::sys::path::is_absolute(), Name, llvm::sys::path::remove_leading_dotslash(), and llvm::StringRef::str().
|
inline |
Definition at line 360 of file DiagnosticInfo.h.
Referenced by llvm::yaml::MappingTraits< DiagnosticLocation >::mapping().
|
inline |
Definition at line 359 of file DiagnosticInfo.h.
Referenced by llvm::yaml::MappingTraits< DiagnosticLocation >::mapping().
StringRef DiagnosticLocation::getRelativePath | ( | ) | const |
Return the file name relative to the compilation directory.
Definition at line 129 of file DiagnosticInfo.cpp.
References llvm::ARMBuildAttrs::File.
Referenced by llvm::yaml::MappingTraits< DiagnosticLocation >::mapping().
|
inline |
Definition at line 354 of file DiagnosticInfo.h.
References llvm::ARMBuildAttrs::File.
Referenced by llvm::DiagnosticInfoOptimizationBase::getMsg(), and llvm::yaml::MappingTraits< DiagnosticInfoOptimizationBase::Argument >::mapping().