1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00

LibCpp: Parse 'using namespace' declarations

This gets us a little bit closer to a fully capable C++ parser.
This commit is contained in:
Poseydon42 2023-01-26 23:17:57 +00:00 committed by Jelle Raaijmakers
parent 2896d7796d
commit 3cd04f40e1
6 changed files with 64 additions and 0 deletions

View file

@ -658,4 +658,11 @@ StringView Declaration::full_name() const
return *m_full_name;
}
void UsingNamespaceDeclaration::dump(FILE* output, size_t indent) const
{
ASTNode::dump(output, indent);
print_indent(output, indent + 1);
outln(output, "{}", full_name());
}
}