1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:27:43 +00:00

LibCpp: Add function for retrieving TODO comments from the parser

Now `get_todo_entries` collects all TODO found within a comment
statement.
This commit is contained in:
Federico Guerinoni 2021-05-17 22:14:59 +02:00 committed by Linus Groh
parent fcef84c461
commit c397e030f4
2 changed files with 14 additions and 0 deletions

View file

@ -35,6 +35,7 @@ public:
void print_tokens() const;
const Vector<String>& errors() const { return m_state.errors; }
const Preprocessor::Definitions& preprocessor_definitions() const { return m_preprocessor_definitions; }
Vector<String> get_todo_entries() const;
struct TokenAndPreprocessorDefinition {
Token token;