1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 14:15:07 +00:00
serenity/Userland/DevTools/HackStudio/LanguageServers/Cpp
Itamar c3c2fe153b LibCpp: Add "ignore invalid statements" option to Preprocessor
When we run the Preprocessor from the CppComprehensionEngine of
the language server, we don't want the preprocessor to crash if it
encounters an invalid preprocessor statement (for example, an #endif
statement without an accompanying previous #if statement).

To achieve this, this commit adds an "ignore_invalid_statements" flag
to the preprocessor which is set by the CppComprehensionEngine.

Fixes #11064.
2021-12-03 15:38:21 +01:00
..
Tests CppLanguageServer: Add test for "get_parameters_hint" 2021-07-04 17:50:33 +02:00
ClientConnection.h Demos+DevTools+Games: Fix visibility of Object-derivative constructors 2021-11-02 22:56:53 +01:00
CMakeLists.txt LanguageServers/Cpp: Port to LibMain :^) 2021-11-23 11:33:36 +01:00
CppComprehensionEngine.cpp LibCpp: Add "ignore invalid statements" option to Preprocessor 2021-12-03 15:38:21 +01:00
CppComprehensionEngine.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
main.cpp Everywhere: Use default execpromises argument for Core::System::pledge 2021-11-28 08:04:57 +01:00
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