Add file name to error output
This commit is contained in:
parent
3998d6154e
commit
ca5623b43d
6 changed files with 40 additions and 14 deletions
|
|
@ -99,13 +99,14 @@ std::unique_ptr<cpp_entity> detail::parse_cpp_enum(const detail::parse_context&
|
|||
catch (parse_error& ex)
|
||||
{
|
||||
context.error = true;
|
||||
context.logger->log("libclang parser", ex.get_diagnostic());
|
||||
context.logger->log("libclang parser", ex.get_diagnostic(context.file));
|
||||
}
|
||||
catch (std::logic_error& ex)
|
||||
{
|
||||
context.error = true;
|
||||
auto location = make_location(child);
|
||||
context.logger->log("libclang parser",
|
||||
diagnostic{ex.what(), make_location(child), severity::error});
|
||||
diagnostic{ex.what(), location, severity::error});
|
||||
}
|
||||
});
|
||||
if (clang_isCursorDefinition(cur))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue