cppast/include/cppast/cpp_entity_kind.hpp
Jonathan Müller 664b5a6d4e Add cpp_variable
2017-01-22 13:06:18 +01:00

39 lines
962 B
C++

// 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.
#ifndef CPPAST_CPP_ENTITY_KIND_HPP_INCLUDED
#define CPPAST_CPP_ENTITY_KIND_HPP_INCLUDED
#include <cppast/detail/assert.hpp>
namespace cppast
{
/// All possible kinds of C++ entities.
enum class cpp_entity_kind
{
file_t,
namespace_t,
namespace_alias_t,
using_directive_t,
using_declaration_t,
type_alias_t,
enum_t,
enum_value_t,
variable_t,
count,
};
/// \returns A human readable string describing the entity kind.
const char* to_string(cpp_entity_kind kind) noexcept;
/// \returns Whether or not a given entity kind is a C++ type.
bool is_type(cpp_entity_kind kind) noexcept;
} // namespace cppast
#endif // CPPAST_CPP_ENTITY_KIND_HPP_INCLUDED