|
tvm
|
A wrapper around std::stringstream to build a diagnostic. More...
#include <diagnostic.h>
Public Member Functions | |
| template<typename T > | |
| DiagnosticBuilder & | operator<< (const T &val) |
| DiagnosticBuilder () | |
| DiagnosticBuilder (const DiagnosticBuilder &builder) | |
| DiagnosticBuilder (DiagnosticLevel level, Span span) | |
| DiagnosticBuilder (DiagnosticLevel level, ObjectRef loc) | |
| DiagnosticBuilder & | WithErrorKind (std::string kind) |
| Set the error kind for this diagnostic. More... | |
| operator Diagnostic () | |
Public Attributes | |
| DiagnosticLevel | level |
| The level. More... | |
| SourceName | source_name |
| The source name. More... | |
| Span | span |
| The span of the diagnostic. More... | |
| ObjectRef | loc |
| The object location at which to report an error. More... | |
| std::string | error_kind {"InternalError"} |
| The error kind (e.g. "TypeError", "ValueError"). More... | |
Friends | |
| class | Diagnostic |
A wrapper around std::stringstream to build a diagnostic.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the error kind for this diagnostic.
|
friend |
| std::string tvm::DiagnosticBuilder::error_kind {"InternalError"} |
The error kind (e.g. "TypeError", "ValueError").
| DiagnosticLevel tvm::DiagnosticBuilder::level |
The level.
| ObjectRef tvm::DiagnosticBuilder::loc |
The object location at which to report an error.
| SourceName tvm::DiagnosticBuilder::source_name |
The source name.
| Span tvm::DiagnosticBuilder::span |
The span of the diagnostic.