cppast/src/cpp_file.cpp
2017-03-16 11:49:37 +01:00

24 lines
581 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.
#include <cppast/cpp_file.hpp>
#include <cppast/cpp_entity_kind.hpp>
using namespace cppast;
cpp_entity_kind cpp_file::kind() noexcept
{
return cpp_entity_kind::file_t;
}
cpp_entity_kind cpp_file::do_get_entity_kind() const noexcept
{
return kind();
}
bool detail::cpp_file_ref_predicate::operator()(const cpp_entity& e)
{
return e.kind() == cpp_entity_kind::file_t;
}