1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:14:58 +00:00
serenity/Userland/Libraries/LibCpp
Itamar 7b42abccf2 LibCpp: Allow qualified names in AST Declaration nodes
Previously, the names of declarations where stored as a simple
StringView.

Because of that, we couldn't parse out-of-line function definitions,
which have qualified names.
For example, we couldn't parse the following snippet:

```
void MyClass::foo(){}
```

To fix this, we now store the name of a declaration with a
ASTNode::Name node, which represents a qualified named.
2022-02-23 00:48:44 +00:00
..
Tests LibCpp: Update regressions tests results 2022-02-09 00:51:31 +01:00
AST.cpp LibCpp: Allow qualified names in AST Declaration nodes 2022-02-23 00:48:44 +00:00
AST.h LibCpp: Allow qualified names in AST Declaration nodes 2022-02-23 00:48:44 +00:00
CMakeLists.txt LibCpp: Add SemanticSyntaxHighlighter 2022-02-09 00:51:31 +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: Allow qualified names in AST Declaration nodes 2022-02-23 00:48:44 +00:00
Parser.h LibCpp: Add public Parser::tokens() method 2022-02-09 00:51:31 +01:00
Preprocessor.cpp LibCpp: Fix lexing of IncludePath token 2022-02-09 00:51:31 +01:00
Preprocessor.h LibCpp: Add Preprocessor:unprocessed_token() 2022-02-09 00:51:31 +01:00
SemanticSyntaxHighlighter.cpp LibCpp: Add SemanticSyntaxHighlighter 2022-02-09 00:51:31 +01:00
SemanticSyntaxHighlighter.h LibCpp: Add SemanticSyntaxHighlighter 2022-02-09 00:51:31 +01:00
SyntaxHighlighter.cpp LibCpp: Use lex_iterable() where applicable 2021-08-21 22:09:56 +02:00
SyntaxHighlighter.h LibCpp: Add SemanticSyntaxHighlighter 2022-02-09 00:51:31 +01:00
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