Comments (6)
You have to run the Parser.Gen project to re-generate the parser bindings.
You will also need to extract this archive in the build folder IIRC: https://github.com/mono/CppSharp/releases/download/CppSharp/headers.zip
That will allow cross-generation of parser bindings for all our supported targets.
from cppsharp.
I can create a PR showing a possible hierarchy, improving on the current implementation.
Question:
does the current implemented generators try to bind templates? If not the migration could be easy as no substantial part in the library will be affected. In my observation, I found that the template usage is minimal which is expected after all.
I can see that the implementation is based on this: ClassTemplateSpecializationDecl. but still not sure how to get the template parameters.
I found in clang docs:
CppSharp
is only using getTemplateArgs
.
from cppsharp.
I am not so sure about these, guess the only way to know is to make some tests around what Clang returns.
from cppsharp.
Now we have native debugging on Windows, I can tinker around and see how to achieve this.
from cppsharp.
Ok so basically these are missing: ClassTemplatePartialSpecializationDecl
TemplateParameterList* clang::ClassTemplatePartialSpecializationDecl::getTemplateParameters() const
This is why I asked you about why not binding the clang API directly, there are lot of missing metadata which are vital for binding generation. I will try patching myself and see what I can do.
from cppsharp.
@tritao I did modify Decl.h
and AST.cpp
and rebuild the project but bindings aren't getting generated.
What am I missing?
from cppsharp.
Related Issues (20)
- Usage of precompiled header HOT 12
- Unable to load DLL when running the C# project. HOT 1
- Duplicated function for overloads & missing functions when trying to wrap GenICam reference implementation HOT 1
- Provide llvm debug packages for windows and linux gcc 12 HOT 2
- Incorrect Doxygen Paragraphs HOT 1
- Support definitionOrder with other declarations HOT 3
- [Linux] Incorrect bindings generated for virtual methods overridden in C++
- Accessor for array of enum inside structs is not generated HOT 1
- DllNotFoundException on Linux HOT 1
- Disable string Marshaller usage in C# HOT 2
- Ref/out value type method params not working correctly HOT 6
- Not work. The Nuget package, for 2022 HOT 1
- Enum items not expanded when being used as arguments to constructor in default argument
- Missing implementations for GenericAArch64 ABI
- DllImport from .exe
- LLVM.lua does not get VS version from build.sh ("Error finding an LLVM build") HOT 1
- CppSharp.Runtime.UTF8Marshaller Included in generated source HOT 1
- Method with std::function parameter is not generated HOT 1
- Mapping a type to a type of the same name causes stack overflow
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cppsharp.