1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00
serenity/Userland/Libraries/LibCpp
Itamar 4f1c77a059 LibCpp: Fix end position calculation for various AST node types
Previously, the end position of the Type and Name nodes was incorrect.
It was incorrectly set to the start position of the next unconsumed
token.

This commit adds a previous_token_end() method and uses it to correctly
get the end position for these node types.
2022-02-09 00:51:31 +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 LibCpp: Fix Declaration::is_member() 2022-02-09 00:51:31 +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 end position calculation for various AST node types 2022-02-09 00:51:31 +01:00
Parser.h LibCpp: Fix end position calculation for various AST node types 2022-02-09 00:51:31 +01:00
Preprocessor.cpp AK: Standardize the behaviour of GenericLexer::consume_until overloads 2022-01-25 13:41:09 +03:30
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 Userland: Undefine FOR_EACH_TOKEN_TYPE everywhere 2022-02-07 18:39:50 +01:00