1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:58:13 +00:00

LanguageServers/Cpp: ParserAutoComplete engine inspects header files

... and performs preprocessing on the source code before parsing.

To support this, we are now able to keep track of multiple
files in the autocomplete engine. We re-parse a file whenever it is
edited.
This commit is contained in:
Itamar 2021-02-06 16:27:39 +02:00 committed by Andreas Kling
parent 02038a0ede
commit 72fdab7bfb
4 changed files with 170 additions and 48 deletions

View file

@ -1,12 +1,13 @@
#include <stdio.h>
#include "other.h"
#include <stdio.h>
int func()
{
int x = 1;
int y = 2;
StructInHeader mystruct;
printf("x: %d\n", x);
printf("y: %d\n", y);
printf("x+y: %d\n", x+y);
printf("x+y: %d\n", x + y);
return x + y;
}