mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 13:37:44 +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
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