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

Consider (perhaps large) C structures received from native code and used in .NET via generated PInvoke bindings. If the structure contains padding bytes, the default equality comparison logic for `ValueType`s...

Sorry guys dumb question but it looks like I could use your framework to build a C# interface for https://github.com/infiniflow. Your project is a work in progress? And infiniflow is...

The documentation for `--with-using` says: ``` A using directive to be included for the given remapped declaration name during binding generation. Supports wildcards. ``` How do wildcards work with this?...

``` Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Repeat 2 times: -------------------------------- at ClangSharp.Interop.clangsharp.Cursor_getVtblIdx(ClangSharp.Interop.CXCursor) -------------------------------- at ClangSharp.Interop.CXCursor.get_VtblIdx()...

I have the intention to generate bindings for a certain library, so in order to get used to it I did my own addition and subtraction C++ library. **Windows 11...

PHNT includes some #if directives that look like below, and that causes ClangSharpPInvokeGenerator to output "token is not a valid binary operator in a preprocessor subexpression": ```c #define PHNT_MODE_KERNEL 0...

Thanks for the tool! I was trying to generate xml from glfw and noticed that comments were missing. Is this something that is supported? I could not find an option...

According to the help text the --with-attribute options supports wildcards:. `-wa, --with-attribute ` `An attribute to be added to the given remapped declaration name during binding generation. Supports wildcards. []`...

Example: ```c typedef int const* pcint; pcint g(); ``` Given the decl for `g` in variable `gDecl`, `gDecl.ReturnType.CanonicalType.PointeeType.CanonicalType.UnqualifiedDesugaredType` returns a `BuiltinType` that still represents `const int`. Poking around in the...

Original code C code ```c typedef enum WGPUInstanceBackend { WGPUInstanceBackend_All = 0x00000000, WGPUInstanceBackend_Vulkan = 1