tvm
Public Member Functions | Public Attributes | Friends | List of all members
tvm::DiagnosticBuilder Class Reference

A wrapper around std::stringstream to build a diagnostic. More...

#include <diagnostic.h>

Collaboration diagram for tvm::DiagnosticBuilder:

Public Member Functions

template<typename T >
DiagnosticBuilderoperator<< (const T &val)
 
 DiagnosticBuilder ()
 
 DiagnosticBuilder (const DiagnosticBuilder &builder)
 
 DiagnosticBuilder (DiagnosticLevel level, Span span)
 
 DiagnosticBuilder (DiagnosticLevel level, ObjectRef loc)
 
 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...
 

Friends

class Diagnostic
 

Detailed Description

A wrapper around std::stringstream to build a diagnostic.

Constructor & Destructor Documentation

◆ DiagnosticBuilder() [1/4]

tvm::DiagnosticBuilder::DiagnosticBuilder ( )
inline

◆ DiagnosticBuilder() [2/4]

tvm::DiagnosticBuilder::DiagnosticBuilder ( const DiagnosticBuilder builder)
inline

◆ DiagnosticBuilder() [3/4]

tvm::DiagnosticBuilder::DiagnosticBuilder ( DiagnosticLevel  level,
Span  span 
)
inline

◆ DiagnosticBuilder() [4/4]

tvm::DiagnosticBuilder::DiagnosticBuilder ( DiagnosticLevel  level,
ObjectRef  loc 
)
inline

Member Function Documentation

◆ operator Diagnostic()

tvm::DiagnosticBuilder::operator Diagnostic ( )
inline

◆ operator<<()

template<typename T >
DiagnosticBuilder& tvm::DiagnosticBuilder::operator<< ( const T &  val)
inline

Friends And Related Function Documentation

◆ Diagnostic

friend class Diagnostic
friend

Member Data Documentation

◆ level

DiagnosticLevel tvm::DiagnosticBuilder::level

The level.

◆ loc

ObjectRef tvm::DiagnosticBuilder::loc

The object location at which to report an error.

◆ source_name

SourceName tvm::DiagnosticBuilder::source_name

The source name.

◆ span

Span tvm::DiagnosticBuilder::span

The span of the diagnostic.


The documentation for this class was generated from the following file: