Add diagnostic on ignored cursor type
This commit is contained in:
parent
8d864bdbe1
commit
a38641ecb1
4 changed files with 17 additions and 1 deletions
|
|
@ -38,6 +38,10 @@ std::unique_ptr<cpp_entity> detail::parse_entity(const detail::parse_context& co
|
|||
break;
|
||||
}
|
||||
|
||||
auto msg = format("unhandled cursor of kind '", get_cursor_kind_spelling(cur).c_str(), "'");
|
||||
context.logger->log("libclang parser",
|
||||
diagnostic{std::move(msg), make_location(cur), severity::warning});
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
catch (parse_error& ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue