Add diagnostic on ignored cursor type

This commit is contained in:
Jonathan Müller 2017-02-22 20:49:20 +01:00
commit a38641ecb1
4 changed files with 17 additions and 1 deletions

View file

@ -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)