1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:07:34 +00:00

HackStudio: Basic C++ autocomplete logic

CppAutoComplete gets a string of code and a position within it, and
returns a Vector of auto-complete suggestions that are relevant for the
given position.

Currently, it's very naive - it uses our CppLexer to find identifiers
in the code which the auto-complete target is a prefix of.
This commit is contained in:
Itamar 2020-09-20 20:55:36 +03:00 committed by Andreas Kling
parent 253ab7536a
commit 42bdcf1828
3 changed files with 139 additions and 0 deletions

View file

@ -1,5 +1,6 @@
set(SOURCES
CodeDocument.cpp
CppAutoComplete.cpp
CursorTool.cpp
Debugger/BacktraceModel.cpp
Debugger/DebugInfoWidget.cpp