Add first cpp_type infrastructure

This commit is contained in:
Jonathan Müller 2017-01-21 20:47:51 +01:00
commit ebfa75aa8b
4 changed files with 341 additions and 0 deletions

15
src/cpp_type.cpp Normal file
View file

@ -0,0 +1,15 @@
// 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_type.hpp>
#include <cppast/cpp_entity.hpp>
#include <cppast/cpp_entity_type.hpp>
using namespace cppast;
bool detail::cpp_type_ref_predicate::operator()(const cpp_entity& e)
{
return is_type(e.type());
}