clang icon indicating copy to clipboard operation
clang copied to clipboard

Support for newer version of clang

Open diasdm opened this issue 5 years ago • 6 comments

Hello,

Background: I'm currently working on a (python) project which is using a different parser but we are considering moving to the one provided by LLVM. (For the time being we are developing in Windows.)

I think I'm missing something but I'm not sure what so I have a few questions:

  • To my understating the python bindings are still only "officially" provided for Linux systems right?
  • This python package supports up to LLVM version 6.0.0?
  • Do you know if there are "unofficial" python bindings for newer versions?

Thank you!

diasdm avatar Jun 11 '19 14:06 diasdm

Hi! Sorry for the very late reply, I have unfortunately not had time for working on this package recently (which I hope to change by Tuesday). I am thinking I will split things up and release separate packages for each major LLVM/Clang version. I need to spend the time to migrate to that model, but as I said, I will start working on that Tuesday.

emmatyping avatar Jul 14 '19 18:07 emmatyping

Hello! In the meantime I did some research, found the python bindings in the Clang repo and have been using those. Although, to my understanding they have many features missing when compared to the C++ API. Thank you for your reply!

diasdm avatar Jul 14 '19 20:07 diasdm

Ah, yes that is always possible. The Python bindings are based on the C API, which the clang developers try to keep stable (thus new features aren't added as quickly).

emmatyping avatar Jul 14 '19 23:07 emmatyping

Were there any updates? A lot of distributions already provide 8.0.0+ release, and 9.0.0 soon will be shipped too?

XVilka avatar Oct 21 '19 07:10 XVilka

I'm not aware of any updates. As I said before, I ended up using the python bindings in the Clang repo, which worked well enough for what I was trying to accomplish.

diasdm avatar Oct 26 '19 12:10 diasdm

Problem is that ctypeslib2 doesn't seem to work with the python bindings, also they are often not being packaged in distributions.

XVilka avatar Dec 27 '19 05:12 XVilka