7#ifndef LIB_ERROR_HELPER_H_
8#define LIB_ERROR_HELPER_H_
12#include "lib/error_message.h"
13#include "lib/format.h"
14#include "lib/source_file.h"
18template <
class... Args>
20 if constexpr (
sizeof...(Args) != 0) {
22 (FormatDetail::visitSourceInfo(args, collect), ...);
24 msg.
message = createFormattedMessage(format, args...);
29template <
class... Args>
30ErrorMessage error_helper(
const char *format,
const std::string &prefix,
32 const Args &...args) {
37template <
class... Args>
38ErrorMessage error_helper(
const char *format,
const Args &...args) {
Definition source_file.h:123
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:157
Definition error_message.h:29
std::string message
Typically error/warning type from catalog.
Definition error_message.h:34