From 2e010db0a5e5c27399acf3497ce3aa7ee4168a34 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 30 Nov 2021 17:01:40 +0100 Subject: LibCpp: Update list of well-known C++ types to match current AK --- Userland/Libraries/LibCpp/Lexer.cpp | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'Userland/Libraries') 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) -- cgit v1.2.3