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

For the `get` - "Cannot cast expression of type `int` to `bool`" For the `set` - "Cannot apply operator `&` to operands of type `bool` and `int`. Here's the relevant...

help wanted

Would be nice to be able to get bindings for `extern` global variables. Apple's C APIs contain quite a lot of these; for example: ```C typedef const struct __CFAllocator *...

C header: ```C typedef struct Point { int x; int y; } Point; Point MyGlobalPoint = { .x = 10, .y = 20 }; ``` produces these C# bindings (missing...

It would be useful for downstream projects (like Win32Metadata) for ClangSharp to mark types generated from `typedef struct` with an attribute to indicate what the alternative names for that struct...

Found when reviewing my code using the generator: ![image](https://github.com/dotnet/ClangSharp/assets/5644458/735d622a-0142-4a66-9327-ef8350a4f14f) It increases the risk to accidentally expose personal information. It's also painful when the C source location isn't fixed.

bug

ClangSharpPInvokeGenerator will currently only expose an `int` indexer for its generated `_e__FixedBuffer` types. This creates an inconsistency with normal fixed buffers, necessitating casts if the field is not able to...

help wanted

Let's say i have a source code hello-world.cpp: ``` #include int add(int a, int b) { int c = a + b; return c; } int main() { std::cout =...

question

In case if I remap the function pointer type, ClangSharpPInvokeGenerator uses remapped typename instead of `IntPtr` at the place where function pointer type is used within the C code. As...

I'm getting System.TypeInitializationException when running the tool. Initially I could not even run the tool after installing with command: ```sh dotnet tool install --global ClangSharpPInvokeGenerator --version 15.0.0 ``` I had...