Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements #6

Open
Islam0mar opened this issue Dec 9, 2020 · 2 comments
Open

Improvements #6

Islam0mar opened this issue Dec 9, 2020 · 2 comments

Comments

@Islam0mar
Copy link

I have forked your library RCRL and used libclang with some changes as the following:

  • Text input is feed to clang.
  • Traverse the parsed code for functions & variables definition "ignore errors".
  • Add export prefix for them and put them in plugin.cpp.
  • Every non-parsed text would be regarded as once in plugin.cpp.
  • Append plugin.hpp with functions prototypes and extern variables.
  • Load library with RTLD_GLOBAL, so variables can be reused.

Your library is very very helpful. Thanks a bunch.

I attracted to your library when I was using a C++17 library and cling--clang5-- wasn't able to handle header files.

Regards.

@onqtam
Copy link
Owner

onqtam commented Dec 16, 2020

@Islam0mar That's pretty cool! Seems that you're quite active on there - I won't be able to help much but I can definitely link to your fork in the README of RCRL with a note that it is based on libclang - instead of using some horrible hand-rolled parser as is the case currently...

@Islam0mar
Copy link
Author

NewLook

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants