diff options
author | Federico Guerinoni <guerinoni.federico@gmail.com> | 2021-06-01 23:54:55 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-23 19:00:11 +0100 |
commit | e0f1c237d21be3e2831092319f50bb429ad1f7a9 (patch) | |
tree | dafd0e6642cb1766c9f3aadbc2c8e68094dd74c2 /Userland/Libraries/LibCpp/Parser.h | |
parent | 935c7b2f4b1299aceec32e7e5123f2f014cc6710 (diff) | |
download | serenity-e0f1c237d21be3e2831092319f50bb429ad1f7a9.zip |
HackStudio: Make TODO entries clickable
Now you can click a TODO entry to set focus on that position of that
file.
Diffstat (limited to 'Userland/Libraries/LibCpp/Parser.h')
-rw-r--r-- | Userland/Libraries/LibCpp/Parser.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCpp/Parser.h b/Userland/Libraries/LibCpp/Parser.h index 1ac0226151..8409144241 100644 --- a/Userland/Libraries/LibCpp/Parser.h +++ b/Userland/Libraries/LibCpp/Parser.h @@ -35,7 +35,14 @@ 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 TodoEntry { + String content; + String filename; + size_t line { 0 }; + size_t column { 0 }; + }; + Vector<TodoEntry> get_todo_entries() const; struct TokenAndPreprocessorDefinition { Token token; |