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

Preprocessing meta-issue #2426

Open
pvdrz opened this issue Feb 28, 2023 · 3 comments
Open

Preprocessing meta-issue #2426

pvdrz opened this issue Feb 28, 2023 · 3 comments

Comments

@pvdrz
Copy link
Contributor

pvdrz commented Feb 28, 2023

This issue keeps track of all the bindgen issues related to preprocessing directives. The two most common reasons for these issues are the following:

  • libclang doesn't have a "good enough" API to implement all the desired features.
  • rust-cexpr cannot evaluate certain expressions.

However, this is not an exhaustive list and there might be more issues blocking these.

@pvdrz
Copy link
Contributor Author

pvdrz commented Mar 21, 2023

tagging @reitermarkus

@carbotaniuman
Copy link

I've finally had the time to iron out bugs and work on my C preprocessor, which is derivative of but largely a rewrite of the earlier Saltwater attempt. #1782

It looks like cexpr appears to handle macro parsing and expression parsing according to the code I see, but the issue obviously means it doesn't. I'd like to trial an attempt to at least integrate the preprocessor, while keeping cexpr for expression parsing. Do you have any pointers for this?

@pvdrz
Copy link
Contributor Author

pvdrz commented Jun 18, 2023

@reitermarkus is already working on something similar here #2369.

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

No branches or pull requests

2 participants