mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
LibCpp: Support parsing function qualifiers
This commit is contained in:
parent
ee35fc0da3
commit
1f9f6ea9d6
4 changed files with 58 additions and 10 deletions
|
@ -51,6 +51,13 @@ void TranslationUnit::dump(size_t indent) const
|
|||
void FunctionDeclaration::dump(size_t indent) const
|
||||
{
|
||||
ASTNode::dump(indent);
|
||||
|
||||
String qualifiers_string;
|
||||
if (!m_qualifiers.is_empty()) {
|
||||
print_indent(indent+1);
|
||||
outln("[{}]", String::join(" ", m_qualifiers));
|
||||
}
|
||||
|
||||
m_return_type->dump(indent + 1);
|
||||
if (!m_name.is_null()) {
|
||||
print_indent(indent + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue