CppSharp v0.11.0 Release Notes
-
๐ The NuGet package now supports Linux and macOS as well
โฌ๏ธ Upgrade to .NET Core 3.1 and improve build system
๐ Make auto-compiling of C# work with .NET Core
โ Adding extract interface pass
โ Add a log for changes per release
๐ Fixed alias of signed char cannot be marshaled
โ Add missing quotes to support paths with spaces in build scripts
๐ Ignore the still unsupported dependent type names
Rewrite GenerateEnumFromMacros helper to also look into enum items.
๐ Fix generation of overloads in NAPI by re-ordering final calculated states.
โก๏ธ Update expression evaluator code from latest upstream.
๐ Improve visiting options implementation in CodeGenerator.
Clean multiline function signatures in the AST converter.
๐ Fix generation of text blocks using NewLineKind.IfNotEmpty.
Git ignore IDEA project folders.
๐ Change XML comments to be tested at run-time
Generate valid C++ for pointers in template args
๐ Better detect invalid specialized functions
Simplify the marking of invalid functions
Generate valid C++ for protected constructors
Generate valid C++ for protected destructors
Only implement abstract classes in C++ for ctors/dtors
๐ Fix test generation for QuickJS generator.
โ Remove unused code in QuickJS module generator.
โ Add enum support to QuickJS generator.
Marshaling correctness fix for enum and primitive types in NAPI.
Abstract marshaler into overridable method in NAPI sources.
Extract NAPI VarPrefix and ArgumentPrefix to base class.
โ Add missing clang headers
๐ Create a single nuget package that supports windows / linux / macos
๐จ Refactor QuickJS generator structure to follow NAPI patterns.
โ Add initial QuickJS primitive type support and test suite.
โ Ensure a tested specialization is really generated
โ Place all output of tests in their own directories
๐ Use C++17 in all native projects
0๏ธโฃ Disable getter/setter to property pass by default in non-managed backends.
๐ Fix forward include collector to consider value class semantics in function returns.
Factor VarPrefix and ArgumentPrefix helpers into base marshaler.
Implement basic visiting behavior in some CodeGenerator overloads.
Normalize visiting overloads to be virtual.
Flush
Module.ExternalClassTemplateSpecializations
to avoid emitting the same specialization in multiple filesโ Add initial Node and N-API testing infrastructure and tests.
โก๏ธ Big update to NAPI generator with initial support for basic examples.
โ Add DFA/NFA state machine utility code.
Replace outdated Clang compiler flags such as
std=c++1z
and replace it withstd=c++17
๐ Change
GenerateSequentialLayout
default value totrue
Simplify TU.FileRelativeDirectory by using Path.GetDirectoryName.
โก๏ธ Update driver to only generate system modules for C# generators.
โ Add ILibrary.GenerateCode as a custom code generation callback.
โฌ๏ธ Upgrade .NET projects to C# 8.0.
๐ Improve generation of type printing declaration names for C language.
Rework constructor generation in C++ code generator.
๐ Setup include dirs on the module instead of parser options in the CLI.
๐ Improve error handling in CLI and avoid defaulting to a generator on unknown option..
โ Add N-API generator support to the CLI.
Extract and re-use GetIncludePath across multiple generators.
๐ Fix TU.FileRelativeDirectory to be more robust against some paths.
Fully resolve include dirs paths in driver option validation.
๐ Fix ShouldGenerateClassNativeField to use NeedsBase instead of HasBase.
โก๏ธ Update Class.HasNonIgnoredBase to use the actual base class.
๐ Fix rename pass not handling some declarations due to early return.
๐ฆ Manage package versions centrally
โ Add
LanguageVersion.CPP20
supportOnly upload artifacts from master branch
โ Make unit tests independent of the generator
โ Simplify code that regenerates test bindings
Only use premake for native projects and improve c# projects.
๐ Move GeneratorTestFixture type to its own file.
๐ Fix typo and move alignment offsets to cpp file
โ Export or implement accessible functions in tests
Export symbols for indirectly accessible constructors
๐ Publish artifacts for CI builds (#1533)
๐ Fix importing/exporting redeclaration in symbols
๐ CI: Add
Restore
step to make it easier to analyze build timesDon't warn repeatedly about an existing LLVM dir
Don't download LLVM if its destination exists
๐ Fix the expression-generator after changed paths
๐ Fix a regressive crash when generating parser bindings
โ Remove redundant overrides from the generated C++/CLI
โ Disable the msvc warning about unexported template specializations
๐ Fix naive version comparison
๐ Fix GCC version detection
๐ Move all LLVM files to /build/llvm
Ignore premake5 binaries
โ Remove secondary Zstandard compression from LLVM packages
๐ Show a message explaining how to build LLVM when a pre-built package is unavailable.
๐ Fix wrong LLVM package name when GCC version is >= 10
โ Add LLVM commands to build.sh
โ Test using a specialization from a dependent module
โ Add install_tools target to build.sh and fix LLVM CI.
๐ Deprecate GCC 7 and add GCC 10 build for LLVM CI.
๐ Move generated .vcxproj files back to their original place
โ Add missing
-configuration
option to build.sh script0๏ธโฃ Replace Generate*.bat files with a single generate.sh which uses VS2019 by default
โ Remove DownloadDeps.bat file
โ Add build.sh and test.sh with execute permissions
๐ Only search for MSVC toolchain in Windows
๐ฆ Generate correct LLVM package name regardless of the current operating system
๐ Avoid using "action:vs* filter because there are better ones that are more specific (#1523)
Convert the visiting options to an enum
โก๏ธ Update CanCheckCodeGenInfo to check function types as well.
Check for a dependent expression before walking variable initializer.
๐ Some Premake robustness fixes for Clang toolchain.
๐จ Use explicit native type printer kind in CLI headers code.
โ Ignore testing the incorrect marshalling of parameters typed const& to primitives
๐ Don't check the unsupported operator= for symbols
โ Add initial NAPI and JS generator.
โ Add initial QuickJS generator.
โ Add C++ generator support to the CLI.
โ Remove artificial limitations for cross-generation in CLI.
Simplify target-specific message output code in CLI.
โ Add a new option to set a prefix for generated files in CLI.
๐ Improve module naming heuristics and add an option for setting it explicitly.
๐ Implement C support as generator kind in CLI.
๐จ Refactor string.Format calls in CLI.
Implement Method.HasSameSignature for signature comparison.
Implement Method.ToString() to help with debugging.
๐ A temporary hack to deal with a bug in MSVC v142 - VS 2019 build tools
Don't wrap trivial constructors and destructors
Ensure bindings are regenerated as needed without using DisableFastUpToDateCheck (#1511)
Continue implementation of C++ generator.
โ Add pass to fix up pure C++ methods to C++ generator.
๐จ More robust C++ type printing of incomplete class declarations.
๐พ Save existing parameter when doing C++ parameter type printing.
โ Add initial C base generator.
Check if module exists before using it in C code generator.
More robust enum generation for C family languages in C code generator.
๐ Fix C generator GenerateMethodSpecifier to support pure and const specifiers.
โ Add set of generated declarations to CLITypeReferences.
โ Add initial block visitor to GeneratorOutputPass.
Only add files to module if module is not null.
โ Add per-declaration support for decl maps.
โ Add BlockGenerator.NeedsNewLine helper property.
๐ Fix class nested enums to be handled by the rename pass.
Document recently added GenerationOutputMode option.
โ Add TypeQualifiersMode to Type and implement in C++ type printer.
โ Add new VisitQualifiedType overload to visitors.
Set include path as weell as file path when creating a new TU.
๐ Fix IsGeneratedOverride to take virtual methods into account.
โ Add some helper class hierarchy methods.
๐ Fix CppMarshal WriteClassInstance to deal with incomplete classes.
Rework Generator interface and add GenerationOutputMode option.
๐ Improve IsTypeComplete to be more robust.
๐ Improve ignored check for decls with explicit generation kinds.
Generate acessor methods for C targets in field to property pass..
Set the correct enum integer type in GenerateEnumFromMacros.
๐ Fix ignored base checking in CheckIgnoredDecls.
๐ Be more strict when constructing a regex for parsing macros.
๐ Handle enum items in rename pass.
๐ Fix code to use BaseClass property instead of first base.
โ Add initial implementation of declaration maps.
โ Remove unsupported Visual Studio versions from generate options
๐ Rename GenerateProjects.bat to Generate.bat
โ Add GenerateVS2019.bat shortcut similar to GenerateMake.bat
Prevent projects from picking up obj files that are generated sometimes (#1508)
๐ Fix all of our warnings in the parser
๐ Fix error in Tests.lua by requiring gmake2 module.
โ Add a GCC 9 build to the LLVM CI build matrix.
๐ Fix minor issue when invoking Premake without an action.
Compress LLVM archives using zstd.
๐ Call MSBuild in x86 build with Win32 platform.
๐ Pass the target architecture when building LLVM.
๐ Publish artifacts after building LLVM.
๐ Fix VS environment paths by setting global env variables.
๐ Do not use LLD when building LLVM under macOS.
Generate C++ for constructors of abstract types
๐ฆ Use NUnit3TestAdapter package (#1504)
โ Add a build for LLVM to the CI
๐ Use correct C# parser bindings for windows x64 (#1501)
Avoid installing NUnit if its already installed. (#1500)
โ Generate code from tests where libraries appear
๐ Fix generation of SequentialLayout structures (#1499)
โก๏ธ Update parser bindings. (#1497)
๐ Fix CS0162 warning about unreachable code (#1492)
๐ Fix CS0109 warnings about new keyword not being required. (#1493)
Enable Multi-processor Compilation (MSVC)
๐ Fix C4273 warnings about inconsistent dll linkage (#1491)
๐ Fix warnings about unnecessary using directives. (#1489)
๐ Fix C4251 warnings (#1487)
Avoid generating an interface with a Dispose method if we already inherit from IDisposable. (#1486)
๐ Fix finding of symbols for members of templates
โ Always ignore warnings about missing PDB files
โฌ๏ธ Reduce number of "download progress" messages. (#1482)
Mark variables with constant expressions as found
๐ Make the CPP ABI visible only to the STD symbols
Generate valid C++ for destructors of nested types
Always use the mangled names as reported by Clang
๐ท Switch CI to GitHub Actions
Call the destructor instead of deleting the object in the generated symbols
๐ Regenerate the parser bindings with sequential layouts (#1479)
โ Remove dummy variable and use discards instead available since C# 7.0 (#1478)
Fallback to LayoutKind.Explicit when a custom alignment is specified. (#1476)
โ Remove
Layout.GetSize()
method as it's no longer relevant (#1474)๐ Fix
String.CSharpSignatureType
returning incorrect type when the given type is a pointer or a reference. (#1473)๐ฆ Expose if a variable is a constant expression
๐ Fix the generation of sequential layouts
๐ Create projects which always build generated code
Simplify the marshalling of returned pointers (#1470)
VTable: improve codegen & make it thread safe (#1469)
Create VTables class to cache delegates pointing to native virtual methods (#1468)
๐ Improve UTF32Marshaller performance (#1467)
๐ Improve generation of C# (#1466)
๐ Reduce calls to ConcurrentDictionary to improve performance (#1464)
Ensure expression is a valid float constant before trying to append
f
suffix (#1465)๐ Fix passing of CMake options to LLVM on Windows
โก๏ธ Update the kind of completed specializations (#1460)
๐ Fix ambiguous conversion functions (#1458)
Prevent string destructor from being called twice when its passed by value (#1455)
โ Remove unsupported calling convention usage (#1454)
๐ Fix PInvokeStackImbalance when calling C++ methods (#1453)
Load symbols at startup to avoid very expensive ResolveSymbol calls everywhere (#1447)
๐ Fix IntPtr array marshalling bug and move hard to read code to CppSharp.Runtime (#1446)
๐ Fix string marshalling bug and move hard to read code to CppSharp.Runtime (#1445)
Add support for const char32_t* and fix const wchar_t* in linux / osx (#1444)
Copy arrays of primitive values using System.Buffers.MemoryCopy (#1440)
๐ Fix marshalling for bool arrays (#1439)
๐ Fix wrong [MarshalAs(UnmanagedType)] for strings (#1438)
โ Remove call argument to fix broken build (#1436)
๐ Basic support for static constexpr variables (#1435)
โ Add support for C++ character literals (u, U, L) (#1434)
โฌ๏ธ Upgrade premake in preparation for .NET Core (#1298)
0๏ธโฃ Use C# 'default literal' to avoid using a type's name that may be renamed (#1432)
โ Add missing
Variable.Type
null check. (#1430)๐ Fix generated constructor cant use
placement new
when class overloadsoperator new
(#1431)๐ Fix generation of VS projects under non-Windows platforms.
๐ Fix wrong marshalling for static member arrays (#1428)
๐ Fix wrong generated destructor
Ignore non-const data() method for std types like basic_string c++17
๐ Fix crash when trying to read a CXXRecordDecl that doesn't have a definition (#1426)
โ RemovePass is now generic.
โ Added the ability to remove a built-in pass.
๐ Fix anonymous member name colliding with enclosing type name (#1425)
๐ Allow the users to overwrite CppSharp type maps.
Find libraries even when given with no extensions
โ Add an option for building with Visual Studio 2019
๐ Fix GCC path detection for Ubuntu 20.
๐ Move libraries to a new class for linking options
๐ Fix memory leaks when using the driver
๐ Simplify ClangParser by making it static
Pack the lld headers as well
โ Import native DLL-s (tests and parser) with MSVC
โ Implement and export all methods in tests