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

I have a simple header file only includes c++ stl headers. When I try to generate bindings for it, it throws ```bash ClangSharpPInvokeGenerator -x c++ -std c++20 -f test.h -I...

Consider the following file: ```c #include struct rdp_bitmap { uint64_t key64; /* 26 */ }; ``` The following code is generated on Windows (via `clangsharppinvokegenerator -f .\graphics.h -n FreeRDP3 -o...

https://github.com/dotnet/LLVMSharp/pull/236

For example, see this C++ code for which I am trying to generate bindings: https://github.com/facebook/yoga/blob/be00354b7194bf182c9b66584f64c83e248d3007/yoga/style/StyleValueHandle.h#L55 Would be nice if the P/Invoke generator supported this syntax correctly. Currently it emits the...

`pix3.h` from https://www.nuget.org/packages/WinPixEventRuntime/1.0.230302001 defines a `union` as follows: ```c union PIXCaptureParameters { enum PIXCaptureStorage { Memory = 0, }; struct GpuCaptureParameters { PCWSTR FileName; } GpuCaptureParameters; struct TimingCaptureParameters { PCWSTR...

help wanted

## Description The ClangSharpPInvokeGenerator (version 20.1.2.1) fails to generate a necessary `using System.Runtime.CompilerServices;` statement when generating code that uses the `Unsafe` class within the `int` indexer of `_e__FixedBuffer` type implementations....

This issue was discussed in the Silk.NET Discord: https://discord.com/channels/521092042781229087/1376331581198827520/1376639064366645450 The Silk.NET generator uses ClangSharpPInvokeGenerator to generate Vulkan bindings, however, VK_NULL_HANDLE from Vulkan is generated as the following: ```cs [NativeTypeName("#define VK_NULL_HANDLE...

help wanted

``` Processing 'Include/miniaudio.h' /home/gidcheen/Desktop/murder_farm/Src/Services/Miniaudio/Bindings.cs(3543,28): error CS0103: The name 'Anonymous4' does not exist in the current context /home/gidcheen/Desktop/murder_farm/Src/Services/Miniaudio/Bindings.cs(3552,28): error CS0103: The name 'Anonymous4' does not exist in the current context /home/gidcheen/Desktop/murder_farm/Src/Services/Miniaudio/Bindings.cs(3561,28):...

```c++ const TAPICallOrPutFlagType TAPI_CALLPUT_FLAG_CALL = 'C'; const TAPICallOrPutFlagType TAPI_CALLPUT_FLAG_PUT = 'P'; const TAPICallOrPutFlagType TAPI_CALLPUT_FLAG_NONE = 'N'; struct TapAPINewOrder { public: TapAPINewOrder() { memset(this, 0, sizeof(TapAPINewOrder)); CallOrPutFlag = TAPI_CALLPUT_FLAG_NONE; CallOrPutFlag2 =...

`stddef.h` is not found since upgrading to 20.1.2 ``` Glfw failed with 1 error(s) (0.5s) Diagnostics for 'Include/GLFW/glfw3.h': Include/GLFW/glfw3.h:103:10: fatal error: 'stddef.h' file not found Skipping 'Include/GLFW/glfw3.h' due to one...