Il2CppDumper icon indicating copy to clipboard operation
Il2CppDumper copied to clipboard

扩展c++关键字列表

Open 1260zqs opened this issue 8 months ago • 0 comments

请注意:如果你没有提供以下所有信息我将会直接无视并关闭这个issue

问题出现在这段导出, "catch" 是一个关键字, 这里被当做字段名使用, 建议扩充c++关键字列表 struct Unity_VisualScripting_LinqUtility__Catch_d__14_T__Fields { int32_t __1__state; Il2CppObject* __2__current; int32_t __l__initialThreadId; struct System_Collections_Generic_IEnumerable_T__o* source; struct System_Collections_Generic_IEnumerable_T__o* __3__source; struct System_Action_Exception__o* catch; struct System_Action_Exception__o* __3__catch; struct System_Collections_Generic_IEnumerator_T__o* _enumerator_5__2; bool _success_5__3; };

    private static readonly HashSet<string> keyword = new(StringComparer.Ordinal)
    {
        "alignas", "alignof", "and", "and_eq", "asm", "auto", "bitand", "bitor", "bool", "break", "case", "catch",
        "char", "char8_t", "char16_t", "char32_t", "class", "compl", "concept", "const", "consteval", "constexpr",
        "constinit", "const_cast", "continue", "co_await", "co_return", "co_yield", "decltype", "default", "delete",
        "do", "double", "dynamic_cast", "else", "enum", "explicit", "export", "extern", "false", "float", "for",
        "friend", "goto", "if", "inline", "int", "long", "mutable", "namespace", "new", "noexcept", "not", "not_eq",
        "nullptr", "operator", "or", "or_eq", "private", "protected", "public", "register", "reinterpret_cast",
        "requires", "return", "short", "signed", "sizeof", "static", "static_assert", "static_cast", "struct", "switch",
        "template", "this", "thread_local", "throw", "true", "try", "typedef", "typeid", "typename", "union",
        "unsigned", "using", "virtual", "void", "volatile", "wchar_t", "while", "xor", "xor_eq"
    };

1260zqs avatar Apr 04 '25 10:04 1260zqs