[breaking] Move error_logged() from logger to parser
This commit is contained in:
parent
6dd85cb7a7
commit
44708fff76
9 changed files with 47 additions and 20 deletions
|
|
@ -13,9 +13,7 @@ using namespace cppast;
|
|||
|
||||
bool diagnostic_logger::log(const char* source, const diagnostic& d) const
|
||||
{
|
||||
if (d.severity == severity::error || d.severity == severity::critical)
|
||||
error_ = true;
|
||||
else if (!verbose_ && d.severity == severity::debug)
|
||||
if (!verbose_ && d.severity == severity::debug)
|
||||
return false;
|
||||
return do_log(source, d);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue