-
Notifications
You must be signed in to change notification settings - Fork 747
Add support for elaborated types. #3
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
Conversation
@edunham This repo is not reported to IRC or homu yet. Can you turn that on? |
So that's something that changed in libclang itself or something like that? |
Fix linux 64bit bindings which included inline symbols This requires rust-lang/rust-bindgen#2 and rust-lang/rust-bindgen#3 to run bindgen, but does not need to wait on those to land as the new bindings are included here. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/271) <!-- Reviewable:end -->
@@ -946,6 +952,9 @@ pub fn type_to_str(x: Enum_CXTypeKind) -> &'static str { | |||
CXType_IncompleteArray => "IncompleteArray", | |||
CXType_VariableArray => "VariableArray", | |||
CXType_DependentSizedArray => "DependentSizedArray", | |||
CXType_MemberPointer => "CXType_MemberPointer", | |||
CXType_Auto => "CXType_Auto", | |||
CXType_Elaborated => "CXType_Elaborated", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the CXType_
prefixes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
add servo/rust-bindgen as Jack requested in rust-lang/rust-bindgen#3 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/402) <!-- Reviewable:end -->
add servo/rust-bindgen as Jack requested in rust-lang/rust-bindgen#3 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/402) <!-- Reviewable:end -->
@emilio re-r? |
r+, I'm looking into CI issues right now (#5) that should allow us to autoland this instead of merging manually, but feel free to do so. |
@bors-servo: r+ |
📌 Commit 1c4ca74 has been approved by |
Add support for elaborated types. Things like JS::Latin1Char now show up as elaborated types and we need to use clang_Type_getNamedType to resolve them. This should fix #1.
💔 Test failed - travis |
☔ The latest upstream changes (presumably #6) made this pull request unmergeable. Please resolve the merge conflicts. |
After the rewrite, this works. Fixes #3
Reduce some nesting in cstruct_to_rs.
…bute Add attribute for C++ special members
Things like JS::Latin1Char now show up as elaborated types and we need to use clang_Type_getNamedType to resolve them.
This should fix #1.