Feature #2092

CodeEditor should display all C++20 keywords

Added by Zbigniew Rebacz about 1 month ago. Updated 28 days ago.

Status:ApprovedStart date:10/24/2020
Priority:NormalDue date:
Assignee:Miroslav Fidler% Done:

0%

Category:CodeEditorSpent time:-
Target version:Release 2021.1

Description

I updated keywords cpp keywords for CodeEditor (C++20 compatible), also I sorted all keywords alphabetically for easier managment:

    static const char *cpp[] = {
        "__asm", "__cdecl", "__declspec", "__except", "__fastcall",
        "__finally", "__inline", "__int16", "__int32", "__int64",
        "__int8", "__leave", "__stdcall", "__try", "__uuidof",
        "alignas", "alignof", "and", "and_eq", "asm", "auto",
        "bitand", "bitor", "bool", "break","case", "catch",
        "char", "char8_t", "char16_t", "char32_t", "class",
        "co_await", "co_return", "co_yield", "compl", "concept",
        "const", "const_cast", "consteval", "constexpr", "constinit",
        "continue", "decltype", "default", "delete", "dllexport",
        "dllimport", "do", "double", "dynamic_cast", "else", "enum",
        "explicit", "export", "extern" "false", "final", "float",
        "for", "force_inline", "friend", "goto", "if", "import",
        "inline", "int", "long", "module" "mutable", "namespace",
        "never_inline", "new", "noexcept", "not", "not_eq", "nullptr",
        "operator", "or", "or_eq", "override", "private", "protected",
        "public", "register", "reinterpret_cast", "requires", "return",
        "short", "signed", "sizeof", "static", "static_assert",
        "static_cast", "struct", "switch", "template", "this", "thread",
        "thread_local", "throw", "true", "try", "typedef", "typeid",
        "typename", "union", "unsigned", "using", "virtual",
        "void", "volatile", "wchar_t", "while", "xor", "xor_eq",
        NULL
    };

Verity with https://en.cppreference.com/w/cpp/keyword.

C++20Keywords.diff Magnifier (2.7 KB) Zbigniew Rebacz, 10/24/2020 01:51 AM

History

#1 Updated by Miroslav Fidler 28 days ago

  • Status changed from Patch ready to Approved

Also available in: Atom PDF