Giter Site home page Giter Site logo

Comments (6)

tritao avatar tritao commented on May 20, 2024 1

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.

deadlocklogic avatar deadlocklogic commented on May 20, 2024

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.

tritao avatar tritao commented on May 20, 2024

I am not so sure about these, guess the only way to know is to make some tests around what Clang returns.

from cppsharp.

deadlocklogic avatar deadlocklogic commented on May 20, 2024

Now we have native debugging on Windows, I can tinker around and see how to achieve this.

from cppsharp.

deadlocklogic avatar deadlocklogic commented on May 20, 2024

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.

deadlocklogic avatar deadlocklogic commented on May 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.