ClangSharp
ClangSharp copied to clipboard
Clang bindings for .NET written in C#
From `winnt.h`: ```c typedef struct _ImageArchitectureHeader { unsigned int AmaskValue: 1; // 1 -> code section depends on mask bit // 0 -> new instruction depends on mask bit int...
From `winnt.h`: ```cs public static JOB_OBJECT_NET_RATE_CONTROL_FLAGS Or(JOB_OBJECT_NET_RATE_CONTROL_FLAGS a, JOB_OBJECT_NET_RATE_CONTROL_FLAGS b) { return (JOB_OBJECT_NET_RATE_CONTROL_FLAGS)((int)a) | ((int)b); } ``` This is causing the following compiler error due to missing parentheses around the...
Nested types (e.g., anonymous structs) that live within a parent type with `unsafe` defined do not themselves need `unsafe`, but the generator is generating it anyway.
As per https://devblogs.microsoft.com/dotnet/introducing-c-source-generators, C# now has support for Source Generators (in preview). Given that `Clang Sharp P/Invoke Binding Generator`'s whole job is to generate C# source code, we should likely...
installing and running ClangSharpPInvokeGenerator results in ``` PS C:\...\Build> ClangSharpPInvokeGenerator Unhandled exception. System.TypeInitializationException: The type initializer for 'ClangSharp.Program' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.CommandLine,...
any command i try to run with the app produces this error  ``` ┌[beyley☮wacky]-(~/libinput/include/linux/linux)-[git://master ✗]- └> clang --version clang version 14.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin ```
Adds a new configuration option `strip-enum-member-type-name`. This feature adresses the feature request described in issue #461. When the config option is applied, the enum type name is stripped from the...
I'm having a hell of a time trying to generate bindings for https://github.com/memononen/fontstash, and all more normal ways of flipping defines and such aren't working. It could very well be...
Obviously, many Decl cursors will not describe a template. Make this property null to reflect that and avoid an exception by TranslationUnit.GetOrCreate(). Additionally, DescribedTemplate will be null for partial template...