Add cpp_base_class
This commit is contained in:
parent
f32af61614
commit
fe5eb5a047
5 changed files with 78 additions and 3 deletions
|
|
@ -51,6 +51,11 @@ cpp_entity_kind cpp_access_specifier::do_get_entity_kind() const noexcept
|
|||
return cpp_entity_kind::access_specifier_t;
|
||||
}
|
||||
|
||||
cpp_entity_kind cpp_base_class::do_get_entity_kind() const noexcept
|
||||
{
|
||||
return cpp_entity_kind::base_class_t;
|
||||
}
|
||||
|
||||
cpp_entity_kind cpp_class::do_get_entity_kind() const noexcept
|
||||
{
|
||||
return cpp_entity_kind::class_t;
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@ const char* cppast::to_string(cpp_entity_kind kind) noexcept
|
|||
return "class";
|
||||
case cpp_entity_kind::access_specifier_t:
|
||||
return "access specifier";
|
||||
case cpp_entity_kind::base_class_t:
|
||||
return "base class specifier";
|
||||
|
||||
case cpp_entity_kind::variable_t:
|
||||
return "variable";
|
||||
|
|
@ -70,7 +72,7 @@ bool cppast::is_type(cpp_entity_kind kind) noexcept
|
|||
case cpp_entity_kind::using_declaration_t:
|
||||
case cpp_entity_kind::enum_value_t:
|
||||
case cpp_entity_kind::access_specifier_t:
|
||||
break;
|
||||
case cpp_entity_kind::base_class_t:
|
||||
case cpp_entity_kind::variable_t:
|
||||
case cpp_entity_kind::function_parameter_t:
|
||||
case cpp_entity_kind::function_t:
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ bool detail::visit(const cpp_entity& e, detail::visitor_callback_t cb, void* fun
|
|||
case cpp_entity_kind::type_alias_t:
|
||||
case cpp_entity_kind::enum_value_t:
|
||||
case cpp_entity_kind::access_specifier_t:
|
||||
case cpp_entity_kind::base_class_t:
|
||||
case cpp_entity_kind::variable_t:
|
||||
case cpp_entity_kind::function_parameter_t:
|
||||
return cb(functor, e, visitor_info::leaf_entity);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue