mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:38:13 +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
|
@ -88,6 +88,7 @@ private:
|
|||
bool match_keyword(const String&);
|
||||
bool match_block_statement();
|
||||
bool match_namespace_declaration();
|
||||
bool match_type();
|
||||
|
||||
Optional<NonnullRefPtrVector<Parameter>> parse_parameter_list(ASTNode& parent);
|
||||
Optional<Token> consume_whitespace();
|
||||
|
@ -163,6 +164,7 @@ private:
|
|||
void initialize_program_tokens(const StringView& program);
|
||||
void add_tokens_for_preprocessor(Token& replaced_token, Preprocessor::DefinedValue&);
|
||||
Vector<StringView> parse_type_qualifiers();
|
||||
Vector<StringView> parse_function_qualifiers();
|
||||
|
||||
Preprocessor::Definitions m_definitions;
|
||||
String m_filename;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue