|
template<typename... Args> |
std::string | bug_message (const char *format, Args &&...args) |
|
template<typename... Args> |
void | diagnose (DiagnosticAction action, const char *diagnosticName, const char *format, const char *suffix, Args &&...args) |
|
template<typename... Args> |
void | diagnose (DiagnosticAction action, const int errorCode, const char *format, const char *suffix, Args &&...args) |
|
template<class T , typename = decltype(std::declval<T>()->getSourceInfo()), typename... Args> |
void | diagnose (DiagnosticAction action, const int errorCode, const char *format, const char *suffix, T node, Args &&...args) |
|
template<typename... Args> |
std::string | format_message (const char *format, Args &&...args) |
|
DiagnosticAction | getDefaultInfoDiagnosticAction () |
|
DiagnosticAction | getDefaultWarningDiagnosticAction () |
|
DiagnosticAction | getDiagnosticAction (int errorCode, cstring diagnostic, DiagnosticAction defaultAction) |
|
unsigned | getDiagnosticCount () const |
|
unsigned | getErrorCount () const |
|
unsigned | getInfoCount () const |
|
unsigned | getMaxErrorCount () const |
|
std::ostream * | getOutputStream () const |
|
unsigned | getWarningCount () const |
|
template<typename... Args> |
void | parser_error (const Util::InputSources *sources, const char *fmt, Args &&...args) |
|
template<typename T > |
void | parser_error (const Util::SourceInfo &location, const T &message) |
|
void | setDefaultInfoDiagnosticAction (DiagnosticAction action) |
| set the default diagnostic action for calls to P4::info() .
|
|
void | setDefaultWarningDiagnosticAction (DiagnosticAction action) |
| set the default diagnostic action for calls to P4::warning() .
|
|
void | setDiagnosticAction (std::string_view diagnostic, DiagnosticAction action) |
| Set the action to take for the given diagnostic.
|
|
unsigned | setMaxErrorCount (unsigned newMaxCount) |
| set maxErrorCount to a the @newMaxCount threshold and return the previous value
|
|
void | setOutputStream (std::ostream *stream) |
|