Skip to content

Allow parsing cast expressions.#33

Open
reitermarkus wants to merge 3 commits intojethrogb:masterfrom
reitermarkus:cast-expr
Open

Allow parsing cast expressions.#33
reitermarkus wants to merge 3 commits intojethrogb:masterfrom
reitermarkus:cast-expr

Conversation

@reitermarkus
Copy link
Copy Markdown

@reitermarkus reitermarkus commented Sep 8, 2022

Revival of #15.

Copy link
Copy Markdown
Collaborator

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At a glance it looks reasonable, but I'm confused about the patch section, can you clarify whether you intend that to be merged?

Comment thread Cargo.toml
clang = { version = "2", features = ["runtime"] }

[patch.crates-io]
clang-sys = { git = "https://github.com/reitermarkus/clang-sys", branch = "load-api" }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you upstream or remove this? It seems unfortunate not depending on the crates.io version.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An upstream PR is already opened. This is only needed for the last commit in this PR, cleaning up the test setup.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to split the test setup cleanup into its own PR? Seems like there's some push back against making the change to clang-sys since it's a breaking change...

@dpaoliello
Copy link
Copy Markdown

@emilio @reitermarkus Would either of you be opposed to creating a fork of this PR minus the dependency on the new clang-sys and associated test changes?

@reitermarkus
Copy link
Copy Markdown
Author

@dpaoliello, I have given up on cexpr since it is way too limited. I have written a replacement (cmacro-rs) which supports much more complex macros.

Sadly no one has reviewed my PR at rust-lang/rust-bindgen#2369 replacing cexpr with cmacro yet. Would love to get some feedback on it.

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

Successfully merging this pull request may close these issues.

3 participants