§tiro::compiler_message

Represents a diagnostic message emitted by the compiler. More...

#include "tiropp/compiler.hpp"

§Public Attributes

Name
tiro::severityseverity
The severity of this message.
std::string_viewfile
The relevant source file. May be empty if there is no source file associated with this message.
uint32_tline
Source line (1 based). Zero if unavailable.
uint32_tcolumn
Source column (1 based). Zero if unavailable.
std::string_viewtext
The message text.

§Detailed Description

struct tiro::compiler_message;

Represents a diagnostic message emitted by the compiler.

All fields are only valid for the duration of the message_callback function call.

§Public Attributes Documentation

§variable severity

tiro::severity severity = severity::error;

The severity of this message.

§variable file

std::string_view file;

The relevant source file. May be empty if there is no source file associated with this message.

§variable line

uint32_t line = 0;

Source line (1 based). Zero if unavailable.

§variable column

uint32_t column = 0;

Source column (1 based). Zero if unavailable.

§variable text

std::string_view text;

The message text.


Updated on 2022-02-27 at 21:17:13 +0100