LibCpp: Parse braced initialization list

This commit is contained in:
Itamar 2021-04-02 11:15:22 +03:00 committed by Andreas Kling
commit 44833f1621
Notes: sideshowbarker 2024-07-18 20:41:26 +09:00
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);
}
}
}