1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:07:47 +00:00

LibCpp: Add support for type aliases with typedef/using

This commit is contained in:
Ali Mohammad Pur 2023-06-17 22:41:30 +03:30 committed by Andreas Kling
parent 2e2e535abb
commit 543ccecc0b
4 changed files with 115 additions and 0 deletions

View file

@ -683,4 +683,13 @@ void UsingNamespaceDeclaration::dump(FILE* output, size_t indent) const
outln(output, "{}", full_name());
}
void TypedefDeclaration::dump(FILE* output, size_t indent) const
{
ASTNode::dump(output, indent);
print_indent(output, indent + 1);
outln(output, "{}", full_name());
if (m_alias)
m_alias->dump(output, indent + 1);
}
}