Add cpp_namespace
This commit is contained in:
parent
170c4045e2
commit
c25103e680
9 changed files with 113 additions and 9 deletions
|
|
@ -10,6 +10,9 @@ bool cppast::is_scope(cpp_entity_type type) noexcept
|
|||
{
|
||||
switch (type)
|
||||
{
|
||||
case cpp_entity_type::namespace_t:
|
||||
return true;
|
||||
|
||||
case cpp_entity_type::file_t:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
14
src/cpp_namespace.cpp
Normal file
14
src/cpp_namespace.cpp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Copyright (C) 2017 Jonathan Müller <jonathanmueller.dev@gmail.com>
|
||||
// This file is subject to the license terms in the LICENSE file
|
||||
// found in the top-level directory of this distribution.
|
||||
|
||||
#include <cppast/cpp_namespace.hpp>
|
||||
|
||||
#include <cppast/cpp_entity_type.hpp>
|
||||
|
||||
using namespace cppast;
|
||||
|
||||
cpp_entity_type cpp_namespace::do_get_entity_type() const noexcept
|
||||
{
|
||||
return cpp_entity_type::namespace_t;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue