Parse cpp_namespace

This commit is contained in:
Jonathan Müller 2017-02-21 22:36:38 +01:00
commit ce69b0157f
11 changed files with 160 additions and 16 deletions

View file

@ -8,11 +8,16 @@
using namespace cppast;
cpp_entity_kind cpp_namespace::do_get_entity_kind() const noexcept
cpp_entity_kind cpp_namespace::kind() noexcept
{
return cpp_entity_kind::namespace_t;
}
cpp_entity_kind cpp_namespace::do_get_entity_kind() const noexcept
{
return kind();
}
bool detail::cpp_namespace_ref_predicate::operator()(const cpp_entity& e)
{
return e.kind() == cpp_entity_kind::namespace_t;