Throw exception on multiple parse error
This commit is contained in:
parent
23888ca9c4
commit
204961b7b1
5 changed files with 42 additions and 5 deletions
|
|
@ -96,6 +96,11 @@ std::unique_ptr<cpp_entity> detail::parse_cpp_enum(const detail::parse_context&
|
|||
{
|
||||
context.logger->log("libclang parser", ex.get_diagnostic());
|
||||
}
|
||||
catch (std::logic_error& ex)
|
||||
{
|
||||
context.logger->log("libclang parser",
|
||||
diagnostic{ex.what(), make_location(child), severity::error});
|
||||
}
|
||||
});
|
||||
if (clang_isCursorDefinition(cur))
|
||||
return builder.finish(*context.idx, get_entity_id(cur), std::move(semantic_parent));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue