ClangSharp
ClangSharp copied to clipboard
Clang bindings for .NET written in C#
README indicates > `-D, --define-macro ` > `Define to (or 1 if omitted). [default: ]` But neither `` or `` is used in the command definition. (Is it `-Dmacro=42`, `-D...
Would be nice to have this, because otherwise you need to have the `osx-x64` runtime/SDK installed on a M1 mac. (I can't actually find any info on if it's possible...
```c inline constexpr GUID InterfaceGetIID(name*) noexcept { return GUID{ uuid }; } DWRITE_BEGIN_INTERFACE(IDWriteFontFileLoader, "727cad4e-d6af-4c9e-8a08-d695b11caa49") : IUnknown ``` ```C# public static Guid InterfaceGetIID(IDWriteFontFileLoader* param0) { return new Guid(new byte[] { 0x37,...
There is a `--prefixStrip` key to strip the prefix from function name. Would be great to have similar key to strip the prefix from enums and structs. For example for...
Cannot generate the bindings for macros. ### The header file ```c #define API_VERSION 0x0001 ``` ### The RSP file ```txt --file test.h --output test.cs --namespace Test.PInvoke --language c --methodClassName API...
In case if I add `--config generate-helper-types` key to the command line, I get an exception: ``` Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation....
Currently, `--with-access-specifier *=internal` does not seem to work and I think it would be useful when you want to generate internal bindings. Passing true as the fourth parameter in the...
Trying to use ClangSharpPInvokeGenerator @GenerateClang.rsp to generate sources using Ubuntu 20.04 x64 and libClangSharp.so libclang.so libLLVM.so from NuGet packages for Ubuntu 20.04, I get next errors: `Diagnostics for 'src/include/api/idetector.hpp': /../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/cxxabi_init_exception.h:38:10:...
It appears that we can not create bindings for a template like this: ```cpp template struct ObjContainer { } ``` ClangSharpPInvokeGenerator throws an error: ``` Diagnostics for binding generation: Error...
I am seeing some bad output in generating code for header libraries, regarding local variable reassignment. the `cardinalAxis.operator=(tmp);` line below: ```cs public static Vector3 Vector3Perpendicular(Vector3 v) { Vector3 result =...