mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibCpp: Parse C++ cast expressions
parse static_cast, reinterpret_cast, dynamic_cast & const_cast
This commit is contained in:
parent
646aaa111b
commit
8962581c9c
Notes:
sideshowbarker
2024-07-18 20:41:45 +09:00
Author: https://github.com/itamar8910
Commit: 8962581c9c
Pull-request: https://github.com/SerenityOS/serenity/pull/6009
4 changed files with 74 additions and 1 deletions
|
@ -89,6 +89,7 @@ private:
|
|||
bool match_namespace_declaration();
|
||||
bool match_template_arguments();
|
||||
bool match_name();
|
||||
bool match_cpp_cast_expression();
|
||||
|
||||
enum class TemplatizedMatchResult {
|
||||
NoMatch,
|
||||
|
@ -131,6 +132,7 @@ private:
|
|||
RefPtr<Declaration> parse_single_declaration_in_translation_unit(ASTNode& parent);
|
||||
NonnullRefPtrVector<Type> parse_template_arguments(ASTNode& parent);
|
||||
NonnullRefPtr<Name> parse_name(ASTNode& parent);
|
||||
NonnullRefPtr<CppCastExpression> parse_cpp_cast_expression(ASTNode& parent);
|
||||
|
||||
bool match(Token::Type);
|
||||
Token consume(Token::Type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue