1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 19:45:06 +00:00
serenity/Base/home/anon/Source/little/other.cpp
Itamar 72fdab7bfb 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.
2021-02-08 23:10:38 +01:00

13 lines
215 B
C++

#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);
return x + y;
}