ClangSharp
ClangSharp copied to clipboard
Clang bindings for .NET written in C#
* This calls getAssociatedDecl() on the underlying clang c++ type object. Note: I added a function to clangsharp.cpp and .h, but the clangsharp.cs file was updated manually. I was having...
* getDefaultArgType() must not be called if hasDefaultArgType() returns false. * Since the type may not have a default arg type, make the property nullable.
Could you add an option to strip the prefix from the enumeration keys. For example given following C code: ```cpp enum abc_some_enum { abc_some_enum_key1, abc_some_enum_key2, abc_some_enum_key3, }; ``` The expected...
I am writing a tool that needs to inspect C++ header files. For this I use ClangSharp version 16.0.0). I have constructs in the code as follows: ``` #define ENUM_DATA_TYPE...
The PInvoke generator seems to use the wrong enum base type (or else, it generates values that are not always signed ints). One example is the `FT_Glyph_Format` enum from `freetype`...
I'm following [this tutorial](https://sharovarskyi.com/blog/posts/clangsharp-dotnet-interop-bindings/) on how to generate C# interop bindings for a clang library. After doing `dotnet tool install --global ClangSharpPInvokeGenerator --version 16.0.0`. I got a missing file error,...
I'm getting an error when trying to generate bindings for [options.h](https://github.com/facebook/rocksdb/blob/main/include/rocksdb/options.h): Unsupported type: 'CX_TypeClass_MemberPointer' > Info: Visiting Info: Visiting /usr/include/clang/17.0.6/include/stddef.h Info: Visiting /usr/include/clang/17.0.6/include/__stddef_max_align_t.h Info: Visiting /usr/include/x86_64-linux-gnu/bits/types.h Info: Visiting /usr/include/x86_64-linux-gnu/bits/stdint-intn.h Info:...
The P/Invoke generator causes an access violation when generating bindings for the Steamworks SDK headers, when told to traverse `steam_api_internal.h`. (All other files traverse without errors, except for `matchmakingtypes.h` which...
I'm wrapping cimgui.h and one thing it does is typedef common types for its wrapped library (imgui) so they work in the "API" layer it builds. So things like: ```c...