mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +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:
parent
fcef84c461
commit
c397e030f4
Notes:
sideshowbarker
2024-07-18 11:37:05 +09:00
Author: https://github.com/guerinoni
Commit: c397e030f4
Pull-request: https://github.com/SerenityOS/serenity/pull/6614
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/itamar8910 ✅
Reviewed-by: https://github.com/linusg
2 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue