mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibCpp: Make Preprocessor::handle_preprocessor_line return keyword
This also moves most of the logic that was in handle_preprocessor_line into handle_preprocessor_keyword.
This commit is contained in:
parent
1c3c043cd3
commit
14e0011825
Notes:
sideshowbarker
2024-07-18 17:33:12 +09:00
Author: https://github.com/itamar8910
Commit: 14e0011825
Pull-request: https://github.com/SerenityOS/serenity/pull/7383
Reviewed-by: https://github.com/gunnarbeutner
2 changed files with 30 additions and 21 deletions
|
@ -35,7 +35,9 @@ public:
|
|||
void set_ignore_unsupported_keywords(bool ignore) { m_options.ignore_unsupported_keywords = ignore; }
|
||||
|
||||
private:
|
||||
void handle_preprocessor_line(const StringView&);
|
||||
using PreprocessorKeyword = StringView;
|
||||
PreprocessorKeyword handle_preprocessor_line(const StringView&);
|
||||
void handle_preprocessor_keyword(const StringView& keyword, GenericLexer& line_lexer);
|
||||
|
||||
Definitions m_definitions;
|
||||
const String m_filename;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue