summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-30 17:01:40 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-30 23:34:40 +0100
commit2e010db0a5e5c27399acf3497ce3aa7ee4168a34 (patch)
tree21e84936dafbcfa287977b07a5e4633215319361 /Userland/Libraries
parent9cd89f00854626acfc6d5928e30f3a533e75d800 (diff)
downloadserenity-2e010db0a5e5c27399acf3497ce3aa7ee4168a34.zip
LibCpp: Update list of well-known C++ types to match current AK
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibCpp/Lexer.cpp21
1 files changed, 18 insertions, 3 deletions
diff --git a/Userland/Libraries/LibCpp/Lexer.cpp b/Userland/Libraries/LibCpp/Lexer.cpp
index 3f39b765dd..5696fcad1c 100644
--- a/Userland/Libraries/LibCpp/Lexer.cpp
+++ b/Userland/Libraries/LibCpp/Lexer.cpp
@@ -128,38 +128,53 @@ constexpr StringView s_known_keywords[] = {
};
constexpr StringView s_known_types[] = {
+ "Array",
+ "Array",
+ "Badge",
+ "Bitmap",
"ByteBuffer",
+ "Bytes",
+ "Checked",
"CircularDeque",
"CircularQueue",
"Deque",
"DoublyLinkedList",
- "FileSystemPath",
- "Array",
+ "Error",
+ "ErrorOr",
+ "FlyString",
"Function",
"HashMap",
"HashTable",
"IPv4Address",
"IntrusiveList",
+ "IntrusiveList",
"JsonArray",
"JsonObject",
"JsonValue",
+ "LexicalPath",
"MappedFile",
"NetworkOrdered",
+ "NeverDestroyed",
"NonnullOwnPtr",
"NonnullOwnPtrVector",
"NonnullRefPtr",
"NonnullRefPtrVector",
"Optional",
"OwnPtr",
+ "ReadonlyBytes",
+ "RedBlackTree",
"RefPtr",
"Result",
"ScopeGuard",
+ "Singleton",
"SinglyLinkedList",
+ "Span",
"String",
"StringBuilder",
"StringImpl",
"StringView",
"Utf8View",
+ "Variant",
"Vector",
"WeakPtr",
"auto",
@@ -185,7 +200,7 @@ constexpr StringView s_known_types[] = {
"u8",
"unsigned",
"void",
- "wchar_t"
+ "wchar_t",
};
static bool is_keyword(StringView string)