LLVM: llvm::DiagnosticInfoWithLocationBase Class Reference (original) (raw)
Common features for diagnostics with an associated location. More...
#include "[llvm/IR/DiagnosticInfo.h](DiagnosticInfo%5F8h%5Fsource.html)"
Inheritance diagram for llvm::DiagnosticInfoWithLocationBase:
| Public Member Functions | |
|---|---|
| DiagnosticInfoWithLocationBase (enum DiagnosticKind Kind, enum DiagnosticSeverity Severity, const Function &Fn, const DiagnosticLocation &Loc) | |
| Fn is the function where the diagnostic is being emitted. | |
| bool | isLocationAvailable () const |
| Return true if location information is available for this diagnostic. | |
| std::string | getLocationStr () const |
| Return a string with the location information for this diagnostic in the format "file:line:col". | |
| void | getLocation (StringRef &RelativePath, unsigned &Line, unsigned &Column) const |
| Return location information for this diagnostic in three parts: the relative source file path, line number and column. | |
| std::string | getAbsolutePath () const |
| Return the absolute path tot the file. | |
| const Function & | getFunction () const |
| DiagnosticLocation | getLocation () const |
| Public Member Functions inherited from llvm::DiagnosticInfo | |
| DiagnosticInfo (int Kind, DiagnosticSeverity Severity) | |
| virtual | ~DiagnosticInfo ()=default |
| int | getKind () const |
| DiagnosticSeverity | getSeverity () const |
| virtual void | print (DiagnosticPrinter &DP) const =0 |
| Print using the given DP a user-friendly message. |
Detailed Description
Common features for diagnostics with an associated location.
Definition at line 348 of file DiagnosticInfo.h.
Constructor & Destructor Documentation
Member Function Documentation
◆ getAbsolutePath()
| std::string DiagnosticInfoWithLocationBase::getAbsolutePath | ( | ) | const |
|---|
◆ getFunction()
| const Function & llvm::DiagnosticInfoWithLocationBase::getFunction ( ) const | inline |
|---|
◆ getLocation() [1/2]
◆ getLocation() [2/2]
◆ getLocationStr()
| std::string DiagnosticInfoWithLocationBase::getLocationStr | ( | ) | const |
|---|
◆ isLocationAvailable()
| bool llvm::DiagnosticInfoWithLocationBase::isLocationAvailable ( ) const | inline |
|---|
The documentation for this class was generated from the following files:
- include/llvm/IR/DiagnosticInfo.h
- lib/IR/DiagnosticInfo.cpp