Add file name to error output

This commit is contained in:
Jonathan Müller 2017-07-03 09:02:31 +02:00
commit ca5623b43d
6 changed files with 40 additions and 14 deletions

View file

@ -545,7 +545,7 @@ std::unique_ptr<cpp_file> libclang_parser::do_parse(const cpp_entity_index& idx,
}
catch (detail::parse_error& ex)
{
logger().log("libclang parser", ex.get_diagnostic());
logger().log("libclang parser", ex.get_diagnostic(path));
set_error();
return nullptr;
}