Add cpp_file

This commit is contained in:
Jonathan Müller 2017-01-20 23:21:19 +01:00
commit 170c4045e2
6 changed files with 91 additions and 8 deletions

View file

@ -10,6 +10,8 @@ bool cppast::is_scope(cpp_entity_type type) noexcept
{
switch (type)
{
case cpp_entity_type::file_t:
break;
}
return false;

14
src/cpp_file.cpp Normal file
View 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_file.hpp>
#include <cppast/cpp_entity_type.hpp>
using namespace cppast;
cpp_entity_type cpp_file::do_get_entity_type() const noexcept
{
return cpp_entity_type::file_t;
}