1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:17:35 +00:00

LibCpp: Parse sizeof() expression

This commit is contained in:
Itamar 2021-04-02 10:49:12 +03:00 committed by Andreas Kling
parent 8bcf5daf3f
commit fc503b1368
4 changed files with 44 additions and 1 deletions

View file

@ -90,6 +90,7 @@ private:
bool match_template_arguments();
bool match_name();
bool match_cpp_cast_expression();
bool match_sizeof_expression();
enum class TemplatizedMatchResult {
NoMatch,
@ -133,6 +134,7 @@ private:
NonnullRefPtrVector<Type> parse_template_arguments(ASTNode& parent);
NonnullRefPtr<Name> parse_name(ASTNode& parent);
NonnullRefPtr<CppCastExpression> parse_cpp_cast_expression(ASTNode& parent);
NonnullRefPtr<SizeofExpression> parse_sizeof_expression(ASTNode& parent);
bool match(Token::Type);
Token consume(Token::Type);