ClangSharp icon indicating copy to clipboard operation
ClangSharp copied to clipboard

Clang bindings for .NET written in C#

Results 118 ClangSharp issues
Sort by recently updated
recently updated
newest added

What dlls and to where. how do i get libclang.so files from Nuget even? the links to Nuget dont have any so files in them. what even are the limitations...

The code generator adds unsafe to functions that use pointers, but not fixed size buffers. This results in `error CS0214: Pointers and fixed size buffers may only be used in...

Hello, I have tried #586 ( I already installed `dotnet tool install clangsharppinvokegenerator`, `dotnet add package libclang-runtime-linux-x64` and dotnet add package `libclangsharp-runtime-linux-x64` And I already installed clang and buildessential etc....

https://github.com/dotnet/ClangSharp/issues/367 partially solves the problem, but pure virtual classes will still be generated duplicate ```cpp struct Foo { virtual ~Foo() = default; }; struct Bar { virtual ~Bar() = default;...

The current test system in ClangSharp is... awkward: * Each test is "implemented" in multiple derived types: - Each of which has a, usually, exact same copy of the test...

[sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs#L2960](https://github.com/dotnet/ClangSharp/blob/main/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs#L2960) While generating from [extension.h](https://github.com/soulsmods/ModEngine2/blob/main/include/modengine/extension.h) a null reference exception is thrown. ### ClangSharpArgs.rsp ``` --additional -m64 --config generate-tests-nunit multi-file -std c++20 --include-directory _\modengine2\include --file-directory _\modengine2\include\modengine --file extension.h --namespace ModEngine.Bindings --output...

When using nested types as method parameters, the type is not fully declared leading to syntax errors in the C# code. A reproduction is as follows: ```c++ struct A {...

### Description: Generating a byte boolean with `--with-transparent-struct MyBoolean=byte;Boolean` generates a helper struct with a line with a missing parenthesis. ### Minimal reproduction: `repro.h` ```c #include typedef uint8_t MyBoolean; typedef...

Hi. Has anyone tried to bind FFmpeg with ClangSharp? Did it work? Thanks.

The `ClangSharpPInvokeGenerator` tool allows specifying the output format (i.e. `csharp` or `xml`) via the `-om` option. In some cases multiple formats are needed, which requires multiple invocations of the tool....