summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCpp/Parser.h
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2021-04-02 11:29:44 +0300
committerAndreas Kling <kling@serenityos.org>2021-04-06 21:51:58 +0200
commitaa717e6a62a6dc18d10482ea03937568c90ebb8c (patch)
treefa15a2ac8402f5f470add30530c8db4afaf17bd3 /Userland/Libraries/LibCpp/Parser.h
parentec2c54ee2e1092fd8e8a26ce4044b35b69523640 (diff)
downloadserenity-aa717e6a62a6dc18d10482ea03937568c90ebb8c.zip
LibCpp: Parse C-Style parse expressions
Diffstat (limited to 'Userland/Libraries/LibCpp/Parser.h')
-rw-r--r--Userland/Libraries/LibCpp/Parser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCpp/Parser.h b/Userland/Libraries/LibCpp/Parser.h
index e57ecdd493..0fff5f685d 100644
--- a/Userland/Libraries/LibCpp/Parser.h
+++ b/Userland/Libraries/LibCpp/Parser.h
@@ -90,6 +90,7 @@ private:
bool match_template_arguments();
bool match_name();
bool match_cpp_cast_expression();
+ bool match_c_style_cast_expression();
bool match_sizeof_expression();
bool match_braced_init_list();
@@ -137,6 +138,7 @@ private:
NonnullRefPtr<CppCastExpression> parse_cpp_cast_expression(ASTNode& parent);
NonnullRefPtr<SizeofExpression> parse_sizeof_expression(ASTNode& parent);
NonnullRefPtr<BracedInitList> parse_braced_init_list(ASTNode& parent);
+ NonnullRefPtr<CStyleCastExpression> parse_c_style_cast_expression(ASTNode& parent);
bool match(Token::Type);
Token consume(Token::Type);