Giter VIP home page Giter VIP logo

Comments (4)

andreasfertig avatar andreasfertig commented on May 27, 2024

Hello @amutamil,

thank you for your feedback!

The implementation code you show as it could be isn't valid C++. The second pair of angle brackets is not allowed.

I agree that by default, variant constructs the first type. However, this is an implementation detail of std::variant and is not reflected in the AST. The only thing I see here would be adding a comment with the used initialization value. Sadly, that means that I would have to look for a special type that could also be aliased by, for example, a typedef. I'm not sure this is worth the effort, but I'm happy to accept a patch.

Andreas

from cppinsights.

amutamil avatar amutamil commented on May 27, 2024

Hello Andres,
I would like to contribute to this repo,. Am a junior dev guy with just 2 year experience in C++ , proper C++ though just past 3 months :( if any resources explaining the code base or code walk through is available, it would much helpful to start for me.

from cppinsights.

andreasfertig avatar andreasfertig commented on May 27, 2024

Hello @amutamil,

well, the issue is that C++ Insights uses LLVM/Clang. You need a bit of knowledge there and then find the right entry point for the transformation in C++ Insights. The latter is complex as there is more than just a bare variable declaration. One can also create temporary objects. As I said above, I don't think the feature is worth the effort.

Andreas

from cppinsights.

amutamil avatar amutamil commented on May 27, 2024

okay thanks :)

Amutamil E

from cppinsights.

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.