Format preprocessor diagnostics
This commit is contained in:
parent
108fd1b2ee
commit
f66fa70b1f
3 changed files with 106 additions and 12 deletions
|
|
@ -13,6 +13,7 @@ using namespace cppast;
|
|||
|
||||
bool stderr_diagnostic_logger::do_log(const char* source, const diagnostic& d) const
|
||||
{
|
||||
std::fprintf(stderr, "[%s] %s %s", source, d.location.to_string().c_str(), d.message.c_str());
|
||||
std::fprintf(stderr, "[%s] [%s] %s %s\n", source, to_string(d.severity),
|
||||
d.location.to_string().c_str(), d.message.c_str());
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue