7#ifndef LIB_ERROR_MESSAGE_H_
8#define LIB_ERROR_MESSAGE_H_
13#include "lib/source_file.h"
30 enum class MessageType : std::size_t { None, Error, Warning, Info };
32 MessageType type = MessageType::None;
44 : type(type), prefix(std::move(prefix)),
suffix(std::move(
suffix)) {}
48 prefix(std::move(prefix)),
53 std::string getPrefix()
const;
54 std::string toString()
const;
61struct ParserErrorMessage {
66 : location(loc), message(std::move(msg)) {}
68 std::string toString()
const;
Definition source_file.h:132
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:13
void info(const int kind, const char *format, const T *node, Args &&...args)
Report info messages of type kind. Requires that the node argument have source info.
Definition lib/error.h:167
ErrorMessage()
Used by errorWithSuffix.
Definition error_message.h:38
std::vector< Util::SourceInfo > locations
Particular formatted message.
Definition error_message.h:35
std::string suffix
Relevant source locations for this error.
Definition error_message.h:36
std::string message
Typically error/warning type from catalog.
Definition error_message.h:34
Definition register_reference.h:28