CppSharp v1.0.1 Release Notes
Release Date: 2021-12-30 // almost 2 years ago-
Generate valid C# for independent specialisations with nested fields
Don't revisit parameters when checking to ignore
Generate valid C# for templates with external specializations only
โฌ๏ธ Drop CI with windows 32-bit because of premake
Generate valid C# for nested in external specializations
Generate valid C# for independent external specializations
Generate valid C# for nested external specializations
Generate valid C# for unresolvable base templates
Generate valid C# for classes with dependent fields nested in templates with independent fields
Generate valid C++ for redeclaration of friends
Generate valid C++ for specialisations with void
Generate valid C# for pure functions returning or taking dependent pointers
๐ Fix a crash when processing templates with variable arguments (#1641)
Report errors when linking of generated C++ fails
Ensure complete classes in class templates
๐จ Print C++ for some kinds of non-type template parameters
๐ Always ignore functions returning unsupported specializations
Generate valid C# for unions in templates with non-type args
๐ Fix a test for the new msvc in vs 2022
Match names of parameters in templates to their specializations
โช Work around adding an STD name-space to a custom header
Generate valid C# for fields with types system template specializations
Generate valid C# for variables which use float
Generate valid C# for variables with > 1 arg
Generate valid C++ for variadic functions
๐ Fix C# layouts for classes with nameless unions
Generate valid C# for copy ctors with extra args
Generate valid C# for destructors of templates with dependent fields
๐ Don't generate or move ignored specializations
๐ Rename templates only used through aliases
Generate valid C# for internal fields of type external specialization
Generate valid C# for static object-typed fields
Trim specializations only used in ignored types
Instantiate specialized classes nested in templates
Generate valid C++ for protected inline functions
Generate valid C++ for parameters by value
Generate valid C++ for conversion operators in name-spaced classes
Previous changes from v1.0.0
-
โ 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.