CppSharp v1.0.0 Release Notes

Release Date: 2021-10-12 // over 2 years ago
    • โž• Add built-in compilation of extra symbols

    • ๐Ÿ›  Fix naming for function pointers with strings

    • ๐ŸŒ Ignore external (no module) translation units

    • ๐Ÿ›  Fix instantiation of specializations not to crash

    • 0๏ธโƒฃ Generate valid C# for default args: typedefed refs to enums assigned empty ctors

    • Extend finding of functions to also get overloads

    • 0๏ธโƒฃ Ensure valid C# for default args assigned secondary bases

    • Generate valid C++ for protected ctors of pure classes

    • Generate valid C# for constants in namespaceless modules

    • Generate valid C# for types nested in external typedef-ed specializations

    • Generate valid C# with explicit external specializations

    • ๐Ÿ›  Fix templated indexers returning objects

    • 0๏ธโƒฃ Generate valid C# for specializations in default args

    • Generate valid C++ for pure implemented dtors

    • ๐Ÿ†“ Free returned by value instances, not object ones

    • Generate valid C# for forwarded specializations

    • 0๏ธโƒฃ Bind default constructors with dependent pointers

    • Generate valid C# for setters returning Booleans

    • Place returns as needed without an extra block

    • 0๏ธโƒฃ Generate valid C# for default params in specialisations

    • Resolve overloads with typedef-ed mapped params

    • Generate C++ deconflicted with system functions (#1626)

    • ๐Ÿ–จ Don't print tags for nameless and typedef classes

    • ๐Ÿ›  Fix C4099 (class as struct) in generated C++/CLI

    • Bind the tag kind (struct, class, enum) of a type

    • ๐Ÿ“œ Regenerate the parser bindings

    • โœ‚ Delete the C++ copy when returning by value (#1623)

    • โœ‚ Delete the longer needed patching of msvc headers

    • Don't evaluate dependent variables

    • โœ‚ Delete the longer needed patching of msvc headers

    • โšก๏ธ Update LLVM to the latest version

    • ๐Ÿ›  Fix for "vector subscript out of range" exception (#1621)

    • ๐Ÿ›  Fix incorrect dtor call for non-owned instances (#1615)

    • ๐Ÿ›  Fix regressed marshalling of lists in C++/CLI

    • ๐Ÿ›  Fix for Visual Studio 2019 16.10 (#1614)

    • Generate valid C# for public fields of typedef-ed primitive pointer

    • Resolve names matching those of system functions

    • โž• Add a mechanism to selectively initialize allocated unmanaged memory in the default constructor.

    • ๐Ÿ‘ Much improved support for marshaling const char* to string

    • โœจ Enhanced ExpressionEvaluator to return implicitly typed uint, long, and ulong values from EvaluateNumber when there is no literal type suffix applied to a numeric expression string.

    • ๐Ÿ‘ท Attempt to resolve a GitHub CI Actions isue: CI is currently failing because restore can't find NUnit and friends. The error message and google search indicate that GitHub Actions is only looking in the "Microsoft Visual Studio Offline Packages" cache. Add a nuget.config file to in an attempt to tell GitHub Actions to query nuget.org in addition to the offline cache.

    • bug fix: When generating the get accessor for a field composed of an embedded array of structs use __GetOrCreateInstance to initialize the managed array wrapper rather than __CreateInstance so that __Instance holds a pointer to the memory allocated for the array in the outer struct rather than an independent copy of that memory.

    • Repaired broken alignment padding generation for structs with embedded arrays of structs

    • Generate comments for field

    • ๐Ÿ›  Fix the regressed generation of C++ for variables

    • โž• Add work-in-progress TypeScript interface bindings generator.

    • โž• Add MarkEventsWithUniqueIdPass pass for global event handling.

    • Maintain DeclarationsList integrity by clearing item offsets.

    • โž• Add CppSharp VS Code workspace.

    • Implement two-step initialization for QuickJS.

    • โž• Add QuickJS runtime project and initial features.

    • ๐Ÿ‘Œ Improve support for default arguments in NAPI generator.

    • โž• Add support for generation of default argument expressions in C generator.

    • โž• Add experimental GenerateExternalDataFields option and supporting code.

    • โž• Add C code generator GenerateClassEvents for common event handling.

    • ๐Ÿ–จ Introduce a scope kind stack for type printers.

    • Rework C enum generation for more accurate handling.

    • โž• Add convenience constructor to ArrayType.

    • Create target directory when generating files.

    • โž• Add new pass to convert C++ FastDelegate types into CppSharp delegates.