Giter Club home page Giter Club logo

cpycppyy's People

Contributors

alexander-penev avatar cernphsft avatar etejedor avatar griels avatar kunitoki avatar maximusron avatar mcbarton avatar n-coder avatar sbacchio avatar stwunsch avatar sudo-panda avatar torokati44 avatar vgvassilev avatar wlav avatar xpressiv avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

cpycppyy's Issues

Improve type safety

I don't think so. :) And there seems to be a real benefit there to prevent crashes.

struct ScopeCursor {
    void* fDecl;
};

Certain operations that can be performed on Decls and other on Types. We have interface GetScopeFromType and GetTypeFromScope if we need to convert but I'd prefer to have these explicit. This is more aligned to the underlying compiler API. I'd be happy if we had a special opaque entity for both. Eg:

    typedef ScopeCursor* CppScope_t;

    struct TypeCursor {
        void* fType;
        operator CppScope_t() { return GetScopeFromType(*this); }
    };

    typedef TypeCursor* CppType_t;

Here the compiler could enforce some checks if we try to call an interface with the unexpected parameter. We should look into better ways to strong typing as used here:
https://github.com/llvm/llvm-project/blob/4875e0670926b0a40ce0dd2c3d490b1866889f54/clang/include/clang-c/Index.h#L2243-L2247

Where the cursor can be classified to point to particular data type via an enum. Perhaps we could implement the former suggestion and extend it with the latter.

Apple Silicon build issues

Issues occur when making use of a build of this repo with xeus-clang-repl on Apple Silicon. An initial investigation found the following issue

  • Wrong file extension when building on Apple Silicon (at least on my machine the file extension needed to be .dylib)

This issue is related to compiler-research/xeus-clang-repl#76
A pull request will be created shortly to suggest a fix for the above issues

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.