CppSharp icon indicating copy to clipboard operation
CppSharp copied to clipboard

Tools and libraries to glue C/C++ APIs to high-level languages

Results 221 CppSharp issues
Sort by recently updated
recently updated
newest added

As you may know, some libraries use precompiled headers which are configured in `CMake`. How to include such headers, since they are not explicitly included in the source code? Because...

Why `DefinitionOrder` is exclusive for `Class` and 0 for other declarations? https://github.com/mono/CppSharp/blob/12112720f3dd7c0eab2f2827a2ac056c9ac250bb/src/CppParser/Parser.cpp#L3988-L4002 This is useful when we need to sort declarations based on definition order. Because some scripting languages like...

##### Brief Description Doxygen permits word wrap for paragraphs, but CppSharp treats each line as its own paragraph. OS: Windows ##### Used headers ```cpp /** Line 1 * Line 2...

I want to debug the crashes on the C++ side, but currently there is only 1 llvm debug package [llvm-791523-linux-x64-gcc-9-Debug.tar.xz](https://github.com/mono/CppSharp/releases/download/CppSharp/llvm-791523-linux-x64-gcc-9-Debug.tar.xz). I am using `Windows` and `linux` with `gcc 12`. Provided...

### Consider: ```C++ using CppSharp; using CppSharp.AST; using CppSharp.Parser; class Program { class TestLibrary : ILibrary { public void SetupPasses(Driver driver) { } public void Preprocess(Driver driver, ASTContext ctx) {...

##### Brief Description I am attempting to develop a simple CppSharp project. The implementation of the Setup function in the ILibrary interface is as follows: ``` public void Setup(Driver driver)...

##### Brief Description I am trying to wrap the GenICam reference implementation https://www.emva.org/wp-content/uploads/GenICam_Package_2023.07.zip. The generated code won't compile. After wrapping, the file `IPortStacked.cs` contains the same definition twice for an...

Consider: ```C# module.Headers.Add("Test1.h"); module.Headers.Add("Test2.h"); ``` Now if `Test2.h` includes `Test3.h` then we will have 3 `TranslationUnit` for generation. Is there a way to restrict the generation to `Test1.h/Test2.h` only? (I...

##### Brief Description C# 9 introduced covariant return types: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-9.0/covariant-returns This means we could probably get rid of this pass: https://github.com/mono/CppSharp/blob/main/src/Generator/Passes/CheckVirtualOverrideReturnCovariance.cs

Even following #1783, the following value type: ```cpp CS_VALUE_TYPE class DLL_API ValueType { public: std::string string_member; }; ``` can be constructed in an invalid state, e.g. by using `ValueType v...