ClangSharp
ClangSharp copied to clipboard
Clang bindings for .NET written in C#
ClusApi.h: ```C #ifdef __cplusplus typedef struct _CLUSTER_SHARED_VOLUME_RENAME_GUID_INPUT : public CLUSTER_SHARED_VOLUME_RENAME_INPUT_VOLUME , public CLUSTER_SHARED_VOLUME_RENAME_INPUT_GUID_NAME { #else typedef struct _CLUSTER_SHARED_VOLUME_RENAME_GUID_INPUT { CLUSTER_SHARED_VOLUME_RENAME_INPUT_VOLUME; CLUSTER_SHARED_VOLUME_RENAME_INPUT_GUID_NAME; #endif } CLUSTER_SHARED_VOLUME_RENAME_GUID_INPUT, *PCLUSTER_SHARED_VOLUME_RENAME_GUID_INPUT; ``` Scanned output for version...
I am currently experimenting with generating multiple variants of a structure for interop purposes, based on various `#ifdef`s: ```C struct example { int a; #ifdef VERSION_2_OR_NEWER int b; #endif #ifdef...
Ubuntu 21.10 appears to be the latest supported. Would be great to get 22.04 support. Can't really tell whether support is an upstream thing or how this works, just wanted...
Do not use the mangled anonymous name in `using static` directives. Additionally, a `using static` directive should not be added when members of the enum are already available in context...
running `ClangSharpPInvokeGenerator -x c -l X11 -o output/ -n Silk.NET.X11 -f Xlib.h -f Xutil.h -f XKBlib.h -f Xlib-xcb.h -f Xcms.h -I /opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/14.0.6/include/ -c multi-file -c compatible-codegen -c generate-helper-types` on the...
$ ClangSharpPInvokeGenerator --version ClangSharp P/Invoke Binding Generator version 13.0.0 Ubuntu clang version 13.0.0-2 Unhandled exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to...
I found that it's wierd that at version 14.x ClangSharp still does not have any `stable` version on Nuget. I **highly** doubt that this project **that much** immature. Even if...
The latest global tool (ClangSharpPInvokeGenerator v 13.0) installs fine, however when I run from the command line it cannot find libClang. Is there an extra installation of LLVM that needs...
Hello Tanner , I would like to know since I read CppSharp that's correct you mean p/invoke generation editor can generate header files to public methods into dllimport, definitions and...
``` PS D:\IMPORTANT\source\repos\WindowsProject1\AndroidUI.Native> ls Directory: D:\IMPORTANT\source\repos\WindowsProject1\AndroidUI.Native Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 4/20/2022 8:12 PM 1518 AndroidUI.Native.vcxitems -a---- 4/19/2022 5:09 PM 1378 TmpPtr.h -a---- 4/20/2022 8:14 PM...