diff options
author | Itamar <itamar8910@gmail.com> | 2021-01-23 16:55:19 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-27 21:10:57 +0100 |
commit | fa18010477821f114953015677daa789580a4683 (patch) | |
tree | 8449129a0a08038cb261284e5754e0d0673dc070 /Base/home/anon | |
parent | 8ed96eb27c332bd86dafd3da78b362668e00e0b9 (diff) | |
download | serenity-fa18010477821f114953015677daa789580a4683.zip |
HackStudio: Integate with C++ parser-based autocomplete
By default, C++ auto completion will still be performed by the
lexer-based logic.
However, the parser-based logic can be switched on via the menubar.
Diffstat (limited to 'Base/home/anon')
-rw-r--r-- | Base/home/anon/Source/little/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Base/home/anon/Source/little/main.cpp b/Base/home/anon/Source/little/main.cpp index 2fa2d31126..55b8bed3c6 100644 --- a/Base/home/anon/Source/little/main.cpp +++ b/Base/home/anon/Source/little/main.cpp @@ -1,6 +1,6 @@ +#include "other.h" #include <stdio.h> #include <sys/stat.h> -#include "other.h" enum TestEnum { ValueOne, @@ -13,11 +13,17 @@ struct MyStruct { TestEnum test_value { ValueOne }; }; +struct Container { + MyStruct inner; + int index; +}; + int main(int, char**) { MyStruct my_struct; my_struct.status = !my_struct.status; printf("my_struct.x is %d\n", my_struct.x); + Container container; for (int i = 0; i < 3; ++i) { // This is a comment :^) func(); |