Rename cpp_entity_type -> cpp_entity_kind

This commit is contained in:
Jonathan Müller 2017-01-22 12:29:24 +01:00
commit 87aba96c5b
13 changed files with 79 additions and 79 deletions

27
src/cpp_entity_kind.cpp Normal file
View file

@ -0,0 +1,27 @@
// 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_entity_kind.hpp>
using namespace cppast;
bool cppast::is_type(cpp_entity_kind type) noexcept
{
switch (type)
{
case cpp_entity_kind::enum_t:
return true;
case cpp_entity_kind::file_t:
case cpp_entity_kind::namespace_t:
case cpp_entity_kind::namespace_alias_t:
case cpp_entity_kind::using_directive_t:
case cpp_entity_kind::using_declaration_t:
case cpp_entity_kind::enum_value_t:
case cpp_entity_kind::count:
break;
}
return false;
}