mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-19 18:46:30 +00:00
18 lines
297 B
C++
18 lines
297 B
C++
|
#include "Diagnostic.h"
|
||
|
|
||
|
Diagnostic::Diagnostic()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
Diagnostic::Diagnostic(Severity sev, std::string msg, yy::location loc)
|
||
|
: severity(sev), message(msg), location(loc)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
std::ostream &operator<<(std::ostream &out, const Diagnostic &d)
|
||
|
{
|
||
|
return out << d.location << ": " << d.message;
|
||
|
}
|