Parse cpp_language_linkage

This commit is contained in:
Jonathan Müller 2017-02-22 20:44:19 +01:00
commit 8d864bdbe1
7 changed files with 80 additions and 2 deletions

View file

@ -19,6 +19,12 @@ std::unique_ptr<cpp_entity> detail::parse_entity(const detail::parse_context& co
auto kind = clang_getCursorKind(cur);
switch (kind)
{
case CXCursor_UnexposedDecl:
// go through all the try_parse_XXX functions
if (auto entity = try_parse_cpp_language_linkage(context, cur))
return std::move(entity);
break;
case CXCursor_Namespace:
return parse_cpp_namespace(context, cur);
case CXCursor_NamespaceAlias: