Parse cpp_using_directive/declaration

Both of them now also don't have a name() anymore as it was inconsistent with get_full_name().
This commit is contained in:
Jonathan Müller 2017-02-22 20:09:40 +01:00
commit 087b9583ff
7 changed files with 176 additions and 22 deletions

View file

@ -8,6 +8,9 @@ using namespace cppast;
std::string cppast::full_name(const cpp_entity& e)
{
if (e.name().empty())
return "";
std::string scopes;
for (auto cur = e.parent(); cur; cur = cur.value().parent())