Hide "too many errors" error message

This commit is contained in:
Jonathan Müller 2017-10-07 09:24:18 +02:00
commit be2ea9eb44

View file

@ -328,9 +328,7 @@ libclang_parser::libclang_parser(type_safe::object_ref<const diagnostic_logger>
{
}
libclang_parser::~libclang_parser() noexcept
{
}
libclang_parser::~libclang_parser() noexcept {}
namespace
{
@ -375,8 +373,8 @@ namespace
{
auto loc = source_location::make_file(path); // line number won't help
auto text = detail::cxstring(clang_getDiagnosticSpelling(diag));
logger.log("libclang", diagnostic{text.c_str(), loc, sev.value()});
if (text != "too many errors emitted, stopping now")
logger.log("libclang", diagnostic{text.c_str(), loc, sev.value()});
}
}
}