Defines an Diagnostic message by defining the ErrorLocation and a scanner ID. More...
#include <diagnostics.h>
Public Member Functions | |
constexpr ErrorType | diagnosticCode () const |
constexpr ErrorLocation | errorLocation () const |
constexpr | Message (const configuration::ScannerId &id, const diagnostic::ErrorLocation &location) |
constexpr bool | operator== (const diagnostic::Message &rhs) const |
constexpr configuration::ScannerId | scannerId () const |
Private Attributes | |
ErrorLocation | error_location_ |
configuration::ScannerId | id_ |
Friends | |
RawChunk | serialize (const std::vector< diagnostic::Message > &messages) |
Defines an Diagnostic message by defining the ErrorLocation and a scanner ID.
With the provided information a message can be generated for this specific diagnostic incident. The Message object then can be used in an std::ostream to print the diagnostic message defined in the error_code_to_string
array.
Definition at line 181 of file diagnostics.h.
|
inlineconstexpr |
Definition at line 209 of file diagnostics.h.
|
inlineconstexpr |
Definition at line 199 of file diagnostics.h.
|
inlineconstexpr |
Definition at line 194 of file diagnostics.h.
|
inlineconstexpr |
Definition at line 214 of file diagnostics.h.
|
inlineconstexpr |
Definition at line 189 of file diagnostics.h.
|
friend |
|
private |
Definition at line 206 of file diagnostics.h.
|
private |
Definition at line 205 of file diagnostics.h.