Преглед на файлове

LibCpp: Update list of well-known C++ types to match current AK

Andreas Kling преди 3 години
родител
ревизия
2e010db0a5
променени са 1 файла, в които са добавени 18 реда и са изтрити 3 реда
  1. 18 3
      Userland/Libraries/LibCpp/Lexer.cpp

+ 18 - 3
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)