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

related: #561 ---- Hello. I tried to use ClangSharp as a library, but found the documentation lacking, which made learning quite challenging. Looking at the discussions, it seems others have...

## Summary Makes generated marker interfaces `partial` to allow users to manually extend them with custom implementations. Fixes #647 ## Changes - Modified `CSharpOutputBuilder.VisitDecl.cs:829` to generate `public partial interface Interface`...

I'm working on bindings for LibTorch, and one of the issues I found while using ClangSharp on `library.h` is with `#pragma once`. ``` ./include/torch/library.h:93:12: error: redefinition of '_RegisterOrVerify' ./include/torch/library.h:107:17: error:...

## Problem When `--generate-marker-interfaces` is enabled, generated nested interfaces are not marked as `partial`, preventing users from manually extending them with custom implementations. ### Simple Example **C++ input:** ```cpp struct...

Hey everyone, I caught it issue if It happens like `NULL` as `uncheckednull`- That is wrong with Generatoir. Haha! Is it classical bug? I explain you I have ported xcb...

https://github.com/dotnet/ClangSharp/blob/d431b9098eda8cd0b7de12dcf449b7afad88c286/sources/ClangSharp/Cursors/Decls/UsingEnumDecl.cs#L14 As you can see here, the `expectedCursorKind` for `UsingEnumDecl` is `CXCursor_UnexposedDecl`, but when we run this code against a `using enum XXX;` statement in our codebase, the `cursor.kind` is...

Generated code should have the `System.CodeDom.Compiler.GeneratedCodeAttribute` on them. I can add it with `--with-attribute` but shouldn't be needed

enhancement
help wanted

Fixes https://github.com/dotnet/ClangSharp/issues/614 This PR does not include tests. I created it to determine if the repo will allow regex for `--remap` and `--with-attributes`. regex support is opt-in using a separate...