19 lines
515 B
C++
19 lines
515 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::do_get_entity_kind() const noexcept
|
|
{
|
|
return cpp_entity_kind::file_t;
|
|
}
|
|
|
|
bool detail::cpp_file_ref_predicate::operator()(const cpp_entity& e)
|
|
{
|
|
return e.kind() == cpp_entity_kind::file_t;
|
|
}
|