1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-28 21:02:07 +00:00
serenity/Userland/Libraries/LibCpp
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 Tests: Add regression tests for the LibCpp preprocessor 2021-08-14 12:40:55 +02:00
AST.cpp LibCpp: Add support for parsing function types 2021-08-02 01:03:59 +02:00
AST.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
CMakeLists.txt LibCpp: Move Cpp::Token to a separate file 2021-03-13 10:17:02 +01:00
Lexer.cpp LibCpp: Update list of well-known C++ types to match current AK 2021-11-30 23:34:40 +01:00
Lexer.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Parser.cpp LibCpp: Fix copy paste typo in Parser::match_secondary_expression 2021-11-29 14:19:31 -08:00
Parser.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Preprocessor.cpp LibCpp: Add "ignore invalid statements" option to Preprocessor 2021-12-03 15:38:21 +01:00
Preprocessor.h LibCpp: Add "ignore invalid statements" option to Preprocessor 2021-12-03 15:38:21 +01:00
SyntaxHighlighter.cpp LibCpp: Use lex_iterable() where applicable 2021-08-21 22:09:56 +02:00
SyntaxHighlighter.h LibWeb+LibSyntax: Implement nested syntax highlighters 2021-06-07 14:45:49 +04:30
Token.cpp LibCpp: Modify Token::to_string() to include more information 2021-05-22 15:52:11 +02:00
Token.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00