summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-30Auto merge of #384 - emilio:decltype, r=fitzgenbors-servo
codegen: Do the same workaround we do for template parameters with `typename` on aliases for `decltypes` we can't resolve. r? @fitzgen
2017-01-30codegen: ignore aliases for decltypes we can't resolve.Emilio Cobos Álvarez
We do the same for template parameters with `typename` on aliases. This is not great, but it's better than generating invalid code.
2017-01-29Auto merge of #457 - emilio:test-array, r=fitzgenbors-servo
tests: Add an integration test for static arrays. Turns out they were broken before https://github.com/servo/rust-bindgen/issues/456. Let's test it so it doesn't regress. r? @fitzgen
2017-01-30Force copy for incomplete arrays.Emilio Cobos Álvarez
These aren't extremely great, since this usually requires extra bookkeeping. But C allows it, so let's keep the same semantics.
2017-01-30tests: Add an integration test for static arrays.Emilio Cobos Álvarez
Turns out they were broken before https://github.com/servo/rust-bindgen/issues/456. Let's test it so it doesn't regress.
2017-01-29Auto merge of #456 - flier:zero-length-array, r=emiliobors-servo
treat incomplete array as zero length array fix issue #455
2017-01-29extract unsafe ZeroedSizeArray traitFlier Lu
2017-01-29more test cases for zero length array and incomplete arrayFlier Lu
2017-01-28generate helper class to access incomplete arrayFlier Lu
2017-01-28treat incomplete array as zero length arrayFlier Lu
fix issue #455
2017-01-27Auto merge of #452 - emilio:dont-assert, r=fitzgenv0.20.5bors-servo
Remove recently-added assertion that can legitimately trigger This fails under BaseErrorResult in Stylo builds. I have no idea right now why that isn't whitelisted (should be, given we're calling it from TErrorResult's code generation). Let's disable this pending further investigation since I don't have time to dig into it right now. r? @fitzgen
2017-01-27Remove recently-added assertion pending investigation.Emilio Cobos Álvarez
This fails under BaseErrorResult in Stylo builds. I have no idea right now why that isn't whitelisted (should be, given we're calling it from TErrorResult's code generation). Let's disable this pending further investigation since I don't have time to dig into it right now.
2017-01-27Auto merge of #451 - emilio:debug-opaque-types, r=emiliov0.20.4bors-servo
codegen: Derive stuff in forward declarations. So Rust is happy when you use them in template parameters, since the Derive implementations can't catch this otherwise.
2017-01-27codegen: Derive stuff in forward declarations.Emilio Cobos Álvarez
So Rust is happy when you use them in template parameters, since the Derive implementations can't catch this otherwise.
2017-01-26Auto merge of #448 - fitzgen:trace-constructors, r=emiliobors-servo
Trace constructors r? @emilio
2017-01-26Assert that if we generating code for an item, than it is whitelistedNick Fitzgerald
This is a useful debugging tool for us to catch when code generation and whitelisting have different understandings of the world.
2017-01-26Auto merge of #449 - fitzgen:fix-gitignore-and-cargo-locks, r=emiliobors-servo
Fix .gitignore and extra crates' Cargo.lock files The leading ./ breaks git, apparently. At least, they were still showing up as untracked files when I did git status. r? @emilio or @Yamakaky
2017-01-26Fix .gitignore and extra crates' Cargo.lock filesNick Fitzgerald
The leading ./ breaks git, apparently.
2017-01-26Trace constructors in CompInfo's TypeCollector implNick Fitzgerald
Fixes #447
2017-01-26Auto merge of #444 - emilio:no-comments, r=fitzgenbors-servo
codegen: Add an option to skip comment generation. This is mostly a work around https://github.com/servo/rust-bindgen/issues/426, until we implement the proper fix. r? @fitzgen
2017-01-26ir: Allow whitelisting non-recursivelyv0.20.3Emilio Cobos Álvarez
Fixes #429
2017-01-26codegen: Add an option to skip comment generation.Emilio Cobos Álvarez
This is mostly a work around https://github.com/servo/rust-bindgen/issues/426, until we implement the proper fix.
2017-01-26Auto merge of #370 - cynicaldevil:detect-forward, r=emiliobors-servo
Forward declared structs now generate opaque enums @emilio : I checked the test outputs again, and it seems that these changes are affecting struct *definitions* as well. Hence, I have not committed the test changes yet. Fixes #62
2017-01-26Added test for forward declared complex typesNikhil Shagrithaya
2017-01-26Forward declared structs now generate opaque enumsNikhil Shagrithaya
2017-01-25Auto merge of #441 - servo:dedup, r=emiliobors-servo
Update quasi_codegen to 0.29 This avoids compiling two versions of some crates, which hopefully fixes tidy errors for https://github.com/servo/servo/pull/15216.
2017-01-25Update quasi_codegen to 0.29Simon Sapin
This avoids compiling two versions of some crates.
2017-01-25Auto merge of #438 - emilio:bump, r=fitzgenbors-servo
Version bump, ignore expectations' Cargo.lock r? @fitzgen or @Yamakaky
2017-01-25Version bump, ignore expectations' Cargo.lockEmilio Cobos Álvarez
2017-01-24Auto merge of #437 - emilio:constify-all-enums, r=fitzgenbors-servo
codegen: Respect original repr for bitfield-like enums, add a constifying variant. r? @fitzgen Fixes #430
2017-01-24Auto merge of #434 - emilio:no-derive-debug, r=fitzgenbors-servo
Honor and expose the derive_debug option. Fixes #432 r? @fitzgen
2017-01-24Auto merge of #436 - emilio:fix-ns-typedef, r=fitzgenbors-servo
codegen: Fix typedef re-export in namespaces when bindings aren't at the root.
2017-01-24Honor and expose the derive_debug option.Emilio Cobos Álvarez
Fixes #432
2017-01-24codegen: Respect original repr for bitfield-like enums, add a constifying ↵Emilio Cobos Álvarez
variant.
2017-01-24codegen: don't generate extra use statements for non-enums.Emilio Cobos Álvarez
There's just no advantage in doing so.
2017-01-24Make it work in rust stable, and incidentally fix #425Emilio Cobos Álvarez
The problem with #425 was the following: We were parsing the methods after reaching the JS::Value definition. Those methods contained a JSWhyMagic that we hadn't seen, so we parsed it as being in the JS:: module.
2017-01-24codegen: Factor out some bits of root_import.Emilio Cobos Álvarez
2017-01-24codegen: Fix typedef re-export in namespaces when bindings aren't at the root.Emilio Cobos Álvarez
2017-01-24Auto merge of #435 - jethrogb:patch-1, r=emiliobors-servo
Minor documentation changes
2017-01-24Minor documentation changesjethrogb
2017-01-23Auto merge of #423 - fitzgen:cargo-lock, r=emiliobors-servo
Add Cargo.lock file Fixes #421 r? @emilio or @emilio
2017-01-23Add Cargo.lock fileNick Fitzgerald
2017-01-23Auto merge of #420 - pthariensflame:patch-1, r=emiliobors-servo
Add missing highlighting language annotation
2017-01-23Add missing highlighting language annotationAlexander Altman
2017-01-23Auto merge of #419 - fitzgen:cargo-metadata, r=emiliobors-servo
Small cargo and docs clean ups r? @emilio
2017-01-23Expand documentation about C++ bindings generationNick Fitzgerald
2017-01-23Recommend using `bindgen` with build.rs in the READMENick Fitzgerald
2017-01-23Update build instructionsNick Fitzgerald
We don't need to separately build the library and the executable anymore.
2017-01-23Update Cargo.toml metadataNick Fitzgerald
* Use the description from the README, it's a better description. * Add the "development-tools::ffi" category. * Add myself as an author ;)
2017-01-23Auto merge of #418 - fitzgen:update-toc, r=emiliobors-servo
Update toc r? @emilio