summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCpp/Parser.h
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2021-04-02 10:49:12 +0300
committerAndreas Kling <kling@serenityos.org>2021-04-06 21:51:58 +0200
commitfc503b13688dd7d6078caa7692640302e861df61 (patch)
tree0e4bcfa2eb0bfbbdc5136f7018d3d7d94a64ec17 /Userland/Libraries/LibCpp/Parser.h
parent8bcf5daf3f5007838c6c34cc11c81d273bf6ee70 (diff)
downloadserenity-fc503b13688dd7d6078caa7692640302e861df61.zip
LibCpp: Parse sizeof() expression
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 de6a614028..0c308a90ff 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_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);