diff options
author | Itamar <itamar8910@gmail.com> | 2021-03-27 19:19:53 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-06 21:51:58 +0200 |
commit | 1f9f6ea9d64ab412bd5a017c81aebe3602cde3e7 (patch) | |
tree | 8f778408492b7a152c1bde94c2acd7fc566e9756 /Userland/Libraries/LibCpp/Parser.h | |
parent | ee35fc0da31a99d8d5198e9f141cd0b142d461dc (diff) | |
download | serenity-1f9f6ea9d64ab412bd5a017c81aebe3602cde3e7.zip |
LibCpp: Support parsing function qualifiers
Diffstat (limited to 'Userland/Libraries/LibCpp/Parser.h')
-rw-r--r-- | Userland/Libraries/LibCpp/Parser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCpp/Parser.h b/Userland/Libraries/LibCpp/Parser.h index 2255fcbc29..2fe0bacd43 100644 --- a/Userland/Libraries/LibCpp/Parser.h +++ b/Userland/Libraries/LibCpp/Parser.h @@ -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; |