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

Ubuntu 18.04 Installed packages: ``` libclang1-6.0:amd64: /usr/lib/llvm-6.0/lib/libclang.so.1 libclang1-3.6:amd64: /usr/lib/llvm-3.6/lib/libclang.so.1 libclang1-3.4:amd64: /usr/lib/llvm-3.4/lib/libclang.so.1 libclang1-8: /usr/lib/llvm-8/lib/libclang.so.1 libclang1-3.5:amd64: /usr/lib/x86_64-linux-gnu/libclang.so.1 libclang1-3.8:amd64: /usr/lib/llvm-3.8/lib/libclang.so.1 libclang1-3.9:amd64: /usr/lib/llvm-3.9/lib/libclang.so.1 libclang1-3.5:amd64: /usr/lib/llvm-3.5/lib/libclang.so.1 ``` `/usr/lib/x86_64-linux-gnu/libclang.so.1` symlink points to 3.5 This code https://github.com/microsoft/ClangSharp/blob/dd684be635c90cb31e4c228e9896ca1fc7d47d7b/sources/ClangSharp/Interop.Extensions/clang.ResolveLibrary.cs#L13-L36...

While executing the following command, I get an UnauthorizedAccessException for the output directory (-o flag): ```D:\Users\jordy\Downloads\liblouisutdml-2.10.0-win32\include\liblouis> ClangSharpPInvokeGenerator -f .\liblouis.h -n DewSystems.LibLouis -o .\test``` The stack trace is the flowing: ```Processing...

```csharp public override Task NestedDeclarationTest() { var inputContents = @"struct CustomNativeNew {}; struct CustomNativeNewNested { CustomNativeNew Nested; }; "; var expectedOutputContents = @"namespace ClangSharp.Test { public partial struct CustomNativeNew {...

Passing `Path.GetRandomFileName()` as `string testOutputLocation` parameter to `PInvokeGeneratorConfiguration` constructor in `ValidateGeneratedBindingsAsync` will increase code coverage.

``` #define ADDRESS_IN_USE TESTRESULT_FROM_WIN32(10048) ``` If `TESTRESULT_FROM_WIN32` is not defined, the above code will result in the following stack trace. ``` System.InvalidCastException HResult=0x80004002 Message=Unable to cast object of type 'ClangSharp.Stmt'...

Translate ```cpp X create_X() { return X(1, 3.14f); } ``` as ```cs X create_X() { return new X(1, 3.14f); }

## Invalid `CXCursor` cause `System.AccessViolationException` in Locals/Watch windows terminating debugging. If an invalid `CXCursor` is in the locals debugging window and 'Enable Property Evaluation' is enabled the debugger crashes. To...

I'm trying to use ClangSharp v9.0.0 beta from NuGet and i had a lot of trouble getting the libClang and libClangSharp native dependencies to load. I had to manually add...

Here is the code (based on @xoofx setup approach): ```csharp const string root = "cppast.input"; var filesToParse = new List { @"c:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\windef.h", @"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\Include\um\corerror.h", @"e:\BigRepos\runtime\src\coreclr\src\inc\corhdr.h",...

Related to #131 #132. To set the stage, I'll state some facts up-front. TerraFX's organization is the following: - The `generation` folder is mapped to headers in the `shared` and...