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.
This commit is contained in:
Itamar 2021-01-23 16:55:19 +02:00 committed by Andreas Kling
parent 8ed96eb27c
commit fa18010477
Notes: sideshowbarker 2024-07-18 22:49:28 +09:00
14 changed files with 70 additions and 11 deletions

View file

@ -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();