1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 21:38:11 +00:00
serenity/Userland/Libraries/LibCpp
Itamar eb6a15d52b LibCpp: Only store error messages for the main parser state
There's no need to store parser error messages for states with
depth > 0, as they will eventually be popped from the states stack and
their error messages will never be displayed to the user.

Profiling shows that this change reduces the % of backtraces that
contain the store_state & load_state functions from ~95% to ~70%.

Empirically this change reduces the time it takes on my machine for the
c++ language server to handle a file that #includes <LibGUI/Widget.h>
from ~14sec to ~4sec.
2021-07-13 23:20:09 +02:00
..
Tests LibCpp: Fix positional information of Pointer types 2021-07-04 17:50:33 +02:00
AST.cpp LibCpp: Make the fields of AST node types private 2021-07-10 21:58:28 +02:00
AST.h LibCpp: Use fast_is<T> and verify_cast<T> to replace C-style casts 2021-07-10 21:58:28 +02:00
CMakeLists.txt LibCpp: Move Cpp::Token to a separate file 2021-03-13 10:17:02 +01:00
Lexer.cpp LibCpp: Remove InlineLinkedList from the list of known types 2021-06-16 10:40:01 +02:00
Lexer.h LibCpp: Use east const style in Lexer and SyntaxHighlighter 2021-06-05 00:32:28 +04:30
Parser.cpp LibCpp: Only store error messages for the main parser state 2021-07-13 23:20:09 +02:00
Parser.h LibCpp: Only store error messages for the main parser state 2021-07-13 23:20:09 +02:00
Preprocessor.cpp LibCpp: Add option in Preprocessor to keep #include's in processed text 2021-05-22 15:52:11 +02:00
Preprocessor.h HackStudio: Make TODO entries clickable 2021-06-23 19:00:11 +01:00
SyntaxHighlighter.cpp LibWeb+LibSyntax: Implement nested syntax highlighters 2021-06-07 14:45:49 +04:30
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 LibCpp: Modify Token::to_string() to include more information 2021-05-22 15:52:11 +02:00