Fix error reporting in preprocessor

This commit is contained in:
Jonathan Müller 2017-04-08 21:43:41 +02:00
commit a8e2676f36
3 changed files with 3 additions and 9 deletions

View file

@ -13,7 +13,7 @@ using namespace cppast;
bool diagnostic_logger::log(const char* source, const diagnostic& d) const
{
if (d.severity == severity::error)
if (d.severity == severity::error || d.severity == severity::critical)
error_ = true;
else if (!verbose_ && d.severity == severity::debug)
return false;