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

LibCpp: Parse braced initialization list

This commit is contained in:
Itamar 2021-04-02 11:15:22 +03:00 committed by Andreas Kling
parent d482b3fd60
commit 44833f1621
4 changed files with 51 additions and 10 deletions

View file

@ -536,8 +536,16 @@ void CppCastExpression::dump(size_t indent) const
void SizeofExpression::dump(size_t indent) const
{
ASTNode::dump(indent);
if(m_type)
m_type->dump(indent+1);
if (m_type)
m_type->dump(indent + 1);
}
void BracedInitList::dump(size_t indent) const
{
ASTNode::dump(indent);
for (auto& exp : m_expressions) {
exp.dump(indent+1);
}
}
}