1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 04:45:07 +00:00
serenity/Userland/DevTools/HackStudio/LanguageServers/Cpp
Itamar 9ae98bc81b LibCpp: Handle circular imports gracefully
This patch prevents CppComprehensionEngine from endlessly looping when
there's a circular #include in the code.

We now keep track of the set of currently processed files, and will not
re-process a file if it already exists in this set.
When we're done with processing a file it is removed from this set.

The pragma once directive is not yet implemented, but regardless a
mechanism that prevents #include loops even in the absence of
pragma once is desired.
2021-08-19 17:20:37 +02:00
..
Tests CppLanguageServer: Add test for "get_parameters_hint" 2021-07-04 17:50:33 +02:00
ClientConnection.h HackStudio: Make TODO entries clickable 2021-06-23 19:00:11 +01:00
CMakeLists.txt Everywhere: Add component declarations 2021-06-17 11:03:51 +02:00
CppComprehensionEngine.cpp LibCpp: Handle circular imports gracefully 2021-08-19 17:20:37 +02:00
CppComprehensionEngine.h LibCpp: Handle circular imports gracefully 2021-08-19 17:20:37 +02:00
main.cpp HackStudio: Remove unnecessary unveil in ShellLanguageServer 2021-06-12 22:49:20 +04:30
Tests.cpp LibCpp: Do lexing in the Preprocessor 2021-08-07 21:24:11 +02:00
Tests.h LanguageServer/Cpp: Add tests 2021-05-14 13:27:47 +02:00