Throw exception on multiple parse error
This commit is contained in:
parent
23888ca9c4
commit
204961b7b1
5 changed files with 42 additions and 5 deletions
|
|
@ -48,6 +48,12 @@ namespace
|
|||
{
|
||||
context.logger->log("libclang parser", ex.get_diagnostic());
|
||||
}
|
||||
catch (std::logic_error& ex)
|
||||
{
|
||||
context.logger->log("libclang parser",
|
||||
diagnostic{ex.what(), detail::make_location(child),
|
||||
severity::error});
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
|
|
@ -66,6 +72,14 @@ namespace
|
|||
{
|
||||
context.logger->log("libclang parser", ex.get_diagnostic());
|
||||
}
|
||||
catch (std::logic_error& ex)
|
||||
{
|
||||
context.logger->log("libclang parser",
|
||||
diagnostic{ex.what(),
|
||||
detail::make_location(
|
||||
clang_Cursor_getArgument(cur, unsigned(i))),
|
||||
severity::error});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue